Skip to content

Cancel Ingest Job

POST /ingest-jobs/{job_id}/cancel

Cancel a queued import. A claimed one is a 409 naming its status.

RULE IJ-1 is that a crashed job is never auto-requeued, because re-embedding duplicates rows. Cancelling a job the worker already claimed is the mirror image of that mistake: the row would say finished while the loop is still committing items into it.

NameInTypeNotes
job_idpathstring (uuid)required—
StatusDescriptionBody
200Successful ResponseIngestJobView
422Validation ErrorHTTPValidationError
Terminal window
curl -X POST https://your-deployment.example.com/ingest-jobs/{job_id}/cancel \
-H "Authorization: Bearer $COBRE_TOKEN"
FieldTypeNotes
idstring (uuid)required—
kb_idstring (uuid)required—
statusqueued | running | succeeded | failed | cancelledrequired—
stageanalyzing | embedding | nulloptional—
modeverbatim | analyzedrequired—
source_formatcsv | markdown | items | document | urlrequired—
source_filenamestring | nulloptional—
source_urlstring | nulloptional—
total_itemsintegeroptionalDefault 0.
processed_itemsintegeroptionalDefault 0.
created_itemsintegeroptionalDefault 0.
skippedIngestSkip[]optional—
analyzer_run_idstring (uuid) | nulloptional—
tokens_inputintegeroptionalDefault 0.
tokens_outputintegeroptionalDefault 0.
coststringoptionalDefault "0".
error_messagestring | nulloptional—
started_atstring (date-time) | nulloptional—
finished_atstring (date-time) | nulloptional—
created_atstring (date-time)required—