INNER CODE UNIT · Python
_poll_oob_cli
0xSteph/pentest-ai · cli/main.py:460
def _poll_oob_cli(
engagement_id: str, *, timeout: int = 60, interval: int = 5
) -> dict:
"""Poll the OAST collaborator for this engagement. Shared by start and oast poll."""
import asyncio
from engine.findings_db import FindingsDB
from engine.oob.poll import poll_pending_oob
async def _run() -> dict:
db = FindingsDB()
try:
return await poll_pending_oob(
engagement_id=engagement_id,
db=db,
timeout=timeout,
interval=interval,
)