This commit is contained in:
2025-11-30 09:21:14 +08:00
parent 52597178a8
commit 5893efb3d5

View File

@@ -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