get_job_status
Check a crawl job's status and page counts, optionally waiting until it completes, fails, or is cancelled instead of polling.
Instructions
Get the status and page counts of a crawl job. Set wait_seconds to wait for the job to finish instead of polling: the call returns as soon as the job completes, fails or is cancelled, or when the wait runs out, with the status at that moment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The job ID returned by crawl_site | |
| wait_seconds | No | Seconds to wait for the job to finish before returning (default: 0, max: 60; larger values are capped) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| status | Yes | pending, running, completed, failed or cancelled | |
| refused | No | Set when a finished crawl was kept back instead of published: empty, temporary_failures or shrink | |
| failures | No | Failed pages by class (temporary, gone, selector, policy, other), each with a count and one sample | |
| site_key | Yes | ||
| started_at | Yes | ||
| incremental | Yes | ||
| pages_saved | Yes | Pages written by this crawl | |
| completed_at | No | ||
| pages_failed | Yes | Pages that failed; noindex pages are neither saved nor failed | |
| pages_queued | Yes | Pages waiting to be crawled; for a cancelled job, the pages left uncrawled | |
| error_message | No | ||
| pages_processed | Yes | ||
| pages_unchanged | Yes | Incremental re-checks whose content had not changed; not counted in pages_processed | |
| duration_seconds | No | Present once completed_at is | |
| pages_carried_forward | Yes | Pages that failed temporarily and kept their copy from the previous crawl |