workers
Asynchronous workers related operations
Paramètres d'en-tête
X-Fieldsstring · maskOptionnel
An optional fields mask
Réponses
200
Success
application/json
get
/workers/jobs/GET /api/1/workers/jobs/ HTTP/1.1
Host: www.data.gouv.fr
Accept: */*
200
Success
[
  {
    "args": [
      {}
    ],
    "crontab": {
      "day_of_month": "*",
      "day_of_week": "*",
      "hour": "*",
      "minute": "*",
      "month_of_year": "*"
    },
    "description": "text",
    "enabled": false,
    "id": "text",
    "interval": {
      "every": 1,
      "period": "days"
    },
    "kwargs": {},
    "last_run_at": "2025-11-04T11:14:41.426Z",
    "last_run_id": "text",
    "name": "text",
    "schedule": "text",
    "task": "test-high-queue"
  }
]Paramètres d'en-tête
X-Fieldsstring · maskOptionnel
An optional fields mask
Corps
argsobject[]OptionnelDefault: 
The job execution arguments
[]descriptionstringOptionnel
The job description
enabledbooleanOptionnelDefault: 
Is this job enabled
falseidstringLecture seuleOptionnel
The job unique identifier
kwargsobjectOptionnelDefault: 
The job execution keyword arguments
{}last_run_atstring · date-timeLecture seuleOptionnel
The last job execution date
last_run_idstringLecture seuleOptionnel
The last execution task id
namestringRequis
The job unique name
schedulestringLecture seuleOptionnel
The schedule display
taskstring · enumRequisExample: 
The task name
test-high-queueValeurs possibles: Réponses
200
Success
application/json
post
/workers/jobs/POST /api/1/workers/jobs/ HTTP/1.1
Host: www.data.gouv.fr
Content-Type: application/json
Accept: */*
Content-Length: 233
{
  "args": [
    {}
  ],
  "crontab": {
    "day_of_month": "*",
    "day_of_week": "*",
    "hour": "*",
    "minute": "*",
    "month_of_year": "*"
  },
  "description": "text",
  "enabled": false,
  "interval": {
    "every": 1,
    "period": "days"
  },
  "kwargs": {},
  "name": "text",
  "task": "test-high-queue"
}200
Success
{
  "args": [
    {}
  ],
  "crontab": {
    "day_of_month": "*",
    "day_of_week": "*",
    "hour": "*",
    "minute": "*",
    "month_of_year": "*"
  },
  "description": "text",
  "enabled": false,
  "id": "text",
  "interval": {
    "every": 1,
    "period": "days"
  },
  "kwargs": {},
  "last_run_at": "2025-11-04T11:14:41.426Z",
  "last_run_id": "text",
  "name": "text",
  "schedule": "text",
  "task": "test-high-queue"
}Mis à jour
Ce contenu vous a-t-il été utile ?

