Skip to content

Jobs API

List Jobs

Parameters

NameInTypeRequiredDescription
statusquerystring | nullno
kindquerystring | nullno
targetquerystring | nullno
pagequeryintegerno
per_pagequeryintegerno

Responses

StatusDescriptionSchema
200Successful Responseany
422Validation ErrorHTTPValidationError

Job Detail

Parameters

NameInTypeRequiredDescription
job_idpathintegeryes

Responses

StatusDescriptionSchema
200Successful Responseany
422Validation ErrorHTTPValidationError

Cancel Job

Parameters

NameInTypeRequiredDescription
job_idpathintegeryes

Responses

StatusDescriptionSchema
200Successful Responseany
422Validation ErrorHTTPValidationError

Job Events

Parameters

NameInTypeRequiredDescription
job_idpathintegeryes
afterqueryintegerno
limitqueryintegerno

Responses

StatusDescriptionSchema
200Successful Responseany
422Validation ErrorHTTPValidationError

Job Stream

Doc 05 §Streaming 1. line frames carry id: (the resume cursor); progress and status do not. A terminal status closes the stream.

Auth is resolved once via a short-lived session in a thread, never a Depends(get_db) seam, which for a StreamingResponse would stay open for the life of the connection. authorize/require_entitlement are still the ones enforcing it (called directly, not through FastAPI’s DI) so this route stays on the same auth -> RBAC -> entitlement seam as its siblings, in that order.

Parameters

NameInTypeRequiredDescription
job_idpathintegeryes
last_event_idqueryinteger | nullno

Responses

StatusDescriptionSchema
200Successful Responseany
422Validation ErrorHTTPValidationError