Skip to main content

api_jobs

Function api_jobs 

Source
pub fn api_jobs(
    _caller: Actor,
    active: Option<bool>,
    limit: Option<i64>,
    pool: &State<DbPool>,
) -> Result<Json<Vec<JobDto>>, Status>
Expand description

Lists recent jobs across every background-task capability (import / extend / activate / …) — the fleet-wide pending check the observability mandate requires. ?active=true narrows to the non-terminal (queued/running) jobs; ?limit= caps the page (default 50, max 200). Most-recent first; each carries health + duration_seconds.