opl task daemon True
This commit is contained in:
parent
6960593041
commit
74f6b737cb
|
@ -107,7 +107,7 @@ def opl_task(vc_codes: list, opl_id: str):
|
|||
opl = Opl.objects.get(id=opl_id)
|
||||
while time.time()-start_time < 10800: # 一次任务不手动关闭最多持续3小时
|
||||
for i in vchannels:
|
||||
Thread(target=snap_and_analyse, args=(i, algo_codes, opl)).start()
|
||||
Thread(target=snap_and_analyse, args=(i, algo_codes, opl), daemon=True).start()
|
||||
time.sleep(10)
|
||||
opl.mtask_uid = None
|
||||
opl.save()
|
||||
|
|
Loading…
Reference in New Issue