{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-gouv-fr/json-schema/api-gouv-fr-task-schema.json",
  "title": "Task",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-gouv-fr-workers-api-openapi.yml#/components/schemas/Task",
  "properties": {
    "exc": {
      "description": "The exception thrown during execution",
      "type": "string"
    },
    "id": {
      "description": "Tha task execution ID",
      "readOnly": true,
      "type": "string"
    },
    "result": {
      "description": "The task results if exists",
      "type": "string"
    },
    "status": {
      "description": "Cron expression for hour",
      "enum": [
        "PENDING",
        "RETRY",
        "RECEIVED",
        "STARTED",
        "SUCCESS",
        "REVOKED",
        "FAILURE"
      ],
      "readOnly": true,
      "type": "string"
    },
    "traceback": {
      "description": "The execution traceback",
      "type": "string"
    }
  },
  "type": "object"
}