Skip to content
GET/api/v1/jobs/{job_id}

Get Job Status

Poll async job status and retrieve result when completed.

This unified endpoint serves all async operations including:

  • Health score calculations
  • Forensics analysis (logic audit, DCMA 14-point, etc.)
  • CPM calculations
  • Resource analysis
  • And all other async endpoints

Job Lifecycle:

  1. queued - Job submitted, waiting for worker
  2. processing - Worker executing job
  3. completed - Job finished successfully, result available
  4. failed - Job encountered error
  5. cancelled - Job cancelled by user

Progress Tracking:

  • progress_percent: Overall progress (0-100)
  • checks_completed / total_checks: Granular progress for forensics endpoints

Polling Recommendations:

  • Initial delay: 5 seconds
  • Interval: 2-5 seconds
  • Exponential backoff for long-running jobs

Result Expiration:

  • Job results are stored for 24 hours
  • After expiration, job status returns 404

Request example

json
json
{
  "tasks": [
    {
      "id": "T1",
      "duration_days": 5
    }
  ]
}

Response example

json
json
{
  "job_id": "550e8400-e29b-41d4-a716-446655440000",
  "status": "queued",
  "created_at": "2025-01-08T12:00:00Z",
  "task_count": 5000,
  "progress_percent": 0,
  "endpoint_name": "forensics/logic-audit"
}

Response fields from OpenAPI contract

This table is generated from the endpoint response schema in openapi.json.

FieldTypeRequiredDescription
job_idstringRequiredJob identifier
statusstringRequiredStatus of an async job. Job lifecycle: 1. QUEUED - Job submitted to queue, waiting for worker 2. PROCESSING - Worker picked up job and is executing 3. COMPLETED - Job finished successfully 4. FAILED - Job encountered an error 5. CANCELLED - Job was cancelled by user before completion
created_atstringRequiredJob creation timestamp
started_atstring | nullOptionalJob start timestamp
completed_atstring | nullOptionalJob completion timestamp
task_countintegerRequiredNumber of tasks in schedule
resultobject | nullOptionalJob result when completed
errorstring | nullOptionalError message if failed
progress_percentnumber | nullOptionalJob progress percentage (if available)
endpoint_namestring | nullOptionalEndpoint that submitted this job
checks_completedinteger | nullOptionalNumber of checks/steps completed (for forensics endpoints)
total_checksinteger | nullOptionalTotal number of checks/steps (for forensics endpoints)

Schema

json-schema
{
  "$ref": "#/components/schemas/JobStatusResponse"
}

Authentication

  • x-api-key header

Reference details

Operation ID
get_async_job_status_api_v1_jobs__job_id__get
Section
Jobs
Tags
Jobs

Was this page helpful?

Your feedback helps us improve docs, reference pages, and Playground flows.

Topic: Get Job Status · Page: /docs/api-reference/get_async_job_status_api_v1_jobs__job_id__get

TermsPrivacyContact

Schedule analysis guidance. Not legal advice. You remain responsible for contract and agency compliance.