MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / set_dependencies

Function set_dependencies

src/api/admin.py:549–555  ·  view source on GitHub ↗

Set service instances

(tm: TokenManager, pm: ProxyManager, database: Database, cm: Optional[ConcurrencyManager] = None)

Source from the content-addressed store, hash-verified

547 impersonate="chrome",
548 timeout=30,
549 )
550 payload = response.json()
551 task_id = str(payload.get("taskId") or payload.get("id") or "")
552 if response.status_code >= 400 or not task_id:
553 raise RuntimeError(f"captcharun 创建任务失败: {payload}")
554 for _ in range(60):
555 await asyncio.sleep(3)
556 response = await session.get(
557 f"{base_url.rstrip('/')}/v2/tasks/{task_id}",
558 headers=headers,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected