0.2.2
This commit is contained in:
@@ -819,13 +819,13 @@ def main():
|
|||||||
pass
|
pass
|
||||||
break
|
break
|
||||||
if is_forbidden_time():
|
if is_forbidden_time():
|
||||||
logger.info("进入禁跑时段,停止当前批次,等待5分钟后清理指纹浏览器")
|
logger.info("进入禁跑时段,停止当前批次,等待1分钟后清理指纹浏览器")
|
||||||
stop_event.set()
|
stop_event.set()
|
||||||
try:
|
try:
|
||||||
executor.shutdown(wait=True)
|
executor.shutdown(wait=True)
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
time.sleep(300)
|
time.sleep(60)
|
||||||
cleanup_all_browsers()
|
cleanup_all_browsers()
|
||||||
wait_until_out_of_forbidden()
|
wait_until_out_of_forbidden()
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user