Skip to main content

Query Task Status

You can check the status of any task by querying the task API:

Task Statuses

Your payload will return the status of the task. These are the possible statuses for a task:

Request

Response

The response to /task returns the following data:
To parse stub.config, use json.loads() or an equivalent JSON decoder in your language.
Here’s what the response payload looks like as JSON:

Task Cost

The per-task Cost shown in the dashboard is not returned by this API — it is currently only available in the dashboard. To estimate task cost programmatically, multiply the task duration (ended_atstarted_at) by the per-second rates of the CPU, memory, and GPU your app requests. You can find the current rates on the pricing page.