Getting Started
API Reference
Authentication
Alls APIs are authenticated through Bearer Authentication.
Query Task Status
You can check the status of any task by querying the task
API:
This API returns the following data:
- Task ID
- Time the task started, or null if it hasn’t started yet (but is in the queue)
- Time the task ended, or null if it is still running, or hasn’t started yet
- The status of the task
Request
Response
Task Statuses
These are all possible states for a task:
Status | Description |
---|---|
PENDING | The task is enqueued and has not started yet. |
RUNNING | The task is running. |
COMPLETE | The task completed without any errors. |
RETRY | The task is being retried. Defaults to 3, unless max_retries is provided in the function decorator. |
CANCELLED | The task was cancelled by the user. |
TIMEOUT | The task timed out, based on the timeout provided in the function decorator. |
FAILED | The task did not complete successfully. |
Cancel Tasks
Tasks can be cancelled through the api.beam.cloud/v2/task/cancel/
endpoint.
Request
This API accepts a list of tasks, which can be passed in like this:
Response
200
Was this page helpful?