Commit 252eed86 by baiquan

优化hub浏览器关闭逻辑

parent efda7c1a
...@@ -201,9 +201,12 @@ async def run(): ...@@ -201,9 +201,12 @@ async def run():
except Exception as e: except Exception as e:
logger.error(f"任务处理异常: {e}") logger.error(f"任务处理异常: {e}")
for task in tasks: for task in tasks:
if task.get("type") == 1: browser_id = task.get("browser_id")
await closeAllBrowser() if browser_id:
break await closeBrowser(browser_id)
# if task.get("type") == 1:
# await closeAllBrowser()
# break
if __name__ == '__main__': if __name__ == '__main__':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment