Jobs and polling
How long work runs, how to wait for it, and what never to do.
Discoveries take a few minutes, and analyses several minutes, longer when the scraper is busy. Paid tools return a job_id immediately.
wait_for_jobblocks for at most 25 seconds (largertimeout_secondsvalues are capped). If the job is still running, call it again.stage: "queued"means the scraper is at capacity. The job starts by itself: keep waiting.- Never resubmit a running or queued job. A duplicate is refused with "Already in progress … Poll the existing job instead".
failedjobs are refunded. Read the message before retrying.- To resume later,
list_discoveriesandlist_analysesreturn earlier work.