diff --git a/conf/example/bash/cron_set.sh b/conf/example/bash/cron_set.sh index fa397c2..06ccc81 100644 --- a/conf/example/bash/cron_set.sh +++ b/conf/example/bash/cron_set.sh @@ -1,7 +1,7 @@ #!/bin/bash set -e sudo crontab -l > cron.cron -echo "*/1 * * * * /usr/bin/bash /home/pi/lot_manager/conf/example/bash/start_dataupload_internal_one_hour.sh" >> cron.cron +echo "* */1 * * * /usr/bin/bash /home/pi/lot_manager/conf/example/bash/start_dataupload_internal_one_hour.sh" >> cron.cron sudo crontab cron.cron sudo systemctl restart cron.service sudo rm -rf cron.cron \ No newline at end of file diff --git a/video_task.py b/video_task.py index 49f2339..639fe5f 100644 --- a/video_task.py +++ b/video_task.py @@ -46,7 +46,7 @@ user_sched = {} async def close(username, device): # 倒计时600秒 - await asyncio.sleep(5) + await asyncio.sleep(30) print(username + "结束推流") user_sched.pop(username) close_stream(username, device)