• 陈泽健's avatar
    fix(executor): 修复FastAPI端点执行Playwright报asyncio检测错误 · a9074f8c
    陈泽健 提交于
    - playwright_executor.py: 在工作线程中设置 asyncio.set_event_loop(None) 绕过 Playwright 的 asyncio 事件循环检测
    - execution_service.py: 优化 run_all_cases_sync 日志输出,清理调试 print 语句
    - CLAUDE.md: 新增踩坑记录 #9,更新 Playwright 正确模式第 5 条
    - HANDOFF.md: 更新状态为已修复,重构文档结构
    
    根因:Playwright sync_playwright().start() 内部使用 asyncio.get_running_loop() 检测,
    在 FastAPI run_in_executor 工作线程中需将事件循环设为 None 才能绕过检测
    Co-Authored-By: 's avatarClaude <noreply@anthropic.com>
    a9074f8c
名称
最后提交
最后更新
..
cases.ts Loading commit data...
executions.ts Loading commit data...
modules.ts Loading commit data...
recorder.ts Loading commit data...
reports.ts Loading commit data...
security.ts Loading commit data...
stats.ts Loading commit data...