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

Function get_captcha_runtime_status

src/api/admin.py:1891–1901  ·  view source on GitHub ↗

Get background browser runtime preparation status.

(
    method: str = "browser",
    token: str = Depends(verify_admin_token)
)

Source from the content-addressed store, hash-verified

1889
1890@router.get("/api/captcha/runtime-status")
1891async def get_captcha_runtime_status(
1892 method: str = "browser",
1893 token: str = Depends(verify_admin_token)
1894):
1895 """Get background browser runtime preparation status."""
1896 runtime_method = _normalize_runtime_method(method)
1897 task = captcha_runtime_prepare_tasks.get(runtime_method)
1898 status = get_runtime_status(runtime_method)
1899 status["method"] = runtime_method
1900 status["task_running"] = bool(task and not task.done())
1901 return status
1902
1903
1904@router.get("/api/captcha/config")

Callers

nothing calls this directly

Calls 3

get_runtime_statusFunction · 0.85
doneMethod · 0.80

Tested by

no test coverage detected