This commit is contained in:
xyj 2024-01-05 17:04:55 +08:00
parent c557c4c69f
commit 281c93e9e1
3 changed files with 7 additions and 2 deletions

View File

@ -1,2 +1,4 @@
#!/bin/bash
supervisorctl stop data_upload
supervisorctl stop data_upload
supervisorctl stop sensor_to_server
supervisorctl stop sensor_to_local

View File

@ -232,6 +232,9 @@ def p():
subprocess.Popen(
["/usr/bin/bash /home/pi/lot_manager/conf/example/bash/stop_dataupload_internal_one_hour.sh"],
shell=True)
subprocess.Popen(
["/usr/bin/bash /home/pi/lot_manager/conf/example/bash/stop_dataupload_internal_one_hour.sh"],
shell=True)
except Exception as e:
# print(e)
pass

View File

@ -46,7 +46,7 @@ user_sched = {}
async def close(username, device):
# 倒计时600秒
await asyncio.sleep(600)
await asyncio.sleep(5)
print(username + "结束推流")
user_sched.pop(username)
close_stream(username, device)