Get the status of a task
This service reports the status of a task.
A task is created when a service needs to perform a potentially long-running job. For instance, a task is created when you request to retry the push data for failed trips.
When a task is created and awaiting processing, its status is PENDING
. Once processing begins, the status changes to IN_PROGRESS
, and the nbRemainingItems
field is updated as the task advances. Finally, when the task is completed, the status changes to COMPLETED
, the nbRemainingItems
field is set to 0, and the completion date is indicated in the completedAt
field.
If you have your enterprise API key, you can try the API via this link.
Response
The table below summarizes the response parameters.
taskId
string
Unique identifier of the created task
createdAt
string
Date at which the task was created
Date format: YYYY-MM-dd’T’HH:mm:ss.SSSZ
completedAt
string
Date at which the task was completed (if applicable)
Date format: YYYY-MM-dd’T’HH:mm:ss.SSSZ
type
string
Type of task
Allowed values: PUSH_FAILED_TRIPS
status
string
Status of the task
Allowed values: PENDING
, IN_PROGRESS
, COMPLETED
nbItems
integer
Total number of items to process
nbRemainingItems
integer
Number of items not yet processed
Last updated