spidra_cancel_job
Cancel a running batch, crawl, or search job by type and ID, stopping unstarted work, halting active jobs at their next checkpoint, and returning held credits where applicable.
Instructions
Cancel a running batch, crawl or search.
"batch": URLs not yet started are stopped and their held credits returned; finished ones keep their results. A cancelled batch can't be retried.
"crawl": stops at its next check. If it had returned pages, it ends completed with those (charged as usual); if not, cancelled and free. spidra_crawl_pages still reads its pages.
"search": one not yet started is removed; a running one stops at its next checkpoint and then reports failed with "Search cancelled".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The job's id (batchId or jobId) | |
| type | Yes | What kind of job |