Skip to navigation

Get Job

Get a job’s status and stages, and a build’s progress. A write key reads the jobs it started and the automatic builds of its indexes, the ones Get Update Status names. Any other job answers 404 JOB_NOT_FOUND.

Authentication

AuthorizationBearer

A write key, issued by Captain. Server side only. Sent as Authorization: Bearer <key>.

Path parameters

job_idstringRequired

Response

job
idstringOptional
typeenumOptional

index.write: record updates and deletes through the ordered update log, one job per burst

Allowed values:
indexstringOptional
seq_fromintegerOptional

index.write: the first update this job carries

seq_tointegerOptional

index.write: the last update this job carries

recordsintegerOptional

index.write: records written

statusenumOptional
Allowed values:
created_atintegerOptional
started_atinteger or nullOptional
finished_atinteger or nullOptional
stageslist of objectsOptional
progressobjectOptional

index.build: how far the build has got. records_done counts the records the running step has done; a step that doesn’t count records (tables, verify, publish) reports every record done

build_idstringOptional
errorstring or nullOptional
error_codestringOptional

why a failed job failed; error says it in words to show. A build: BAD_VALUES (more than half of a field’s values don’t fit its declared type; see bad_values), BUILD_QUALITY (the build’s checks refused it; the previous build keeps serving), NO_RECORDS (every record was deleted or cleared before the build read them), CANCELLED (the index is being deleted), ENGINE_ERROR (a fault on Captain’s side, in the build or in running the job; the index keeps serving its previous build; retry). An index delete: DELETE_FAILED (Captain couldn’t delete the index; retry). An Algolia import: the Algolia code (ALGOLIA_APP_NOT_FOUND, ALGOLIA_UNREACHABLE, ALGOLIA_INDEX_NOT_FOUND, ALGOLIA_FORBIDDEN, ALGOLIA_TIMEOUT, ALGOLIA_ERROR, INDEX_TOO_LARGE, VALIDATION_ERROR) or IMPORT_FAILED (a fault on Captain’s side; nothing was changed; retry)

bad_valueslist of objectsOptional

with error_code BAD_VALUES: per field, count of bad values, of how many, and up to 3 examples

warningslist of objectsOptional

{code, message}. Settings resolved by a rule (the same warnings GET settings shows). Any build: SETTLE_TIMEOUT (the build is live, but its search results are still settling and may shift for a few minutes; no action needed)

facet_reportlist of objectsOptional
per number or date facet, whether it has value counts and why
resultobject or nullOptional