Files
geointel/docs/JOB_LIFECYCLE.md
T
Codex 6ea3586a3e
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled
Initial GeoIntel V1 foundation
2026-06-16 23:36:32 +02:00

957 B

Job Lifecycle

Long-running work must run through jobs.

Job statuses

queued
running
succeeded
failed
cancelled

Job table fields

  • id
  • job_type
  • status
  • project_id
  • dataset_id nullable
  • analysis_run_id nullable
  • progress_percent nullable
  • message nullable
  • error_code nullable
  • error_detail nullable
  • created_at
  • started_at
  • finished_at

Job types

  • dataset_metadata_extract
  • raster_clip
  • raster_tile
  • vector_import
  • vector_clip
  • grb_fetch
  • object_detection
  • segmentation
  • qaqc_compare
  • export_generate

Job events

Each status transition should create a domain event.

API behavior

Starting a long-running operation returns immediately with:

{
  "data": {
    "job_id": "...",
    "status": "queued"
  },
  "error": null,
  "meta": {}
}

The frontend polls a job endpoint until success or failure.

Failure handling

Jobs must fail loudly and clearly. Do not silently skip processing.