Getting Started
Advanced Features
Walkthroughs
Reference
- API Reference
- CLI Reference
- SDK Reference
Errors
List Version Jobs
List all jobs for the given function version.
curl --request GET \
--url https://mango.sievedata.com/v2/functions/{owner_name}/{function_name}/versions/{version_slug}/jobs \
--header 'X-API-Key: <api-key>'
{
"data": [
{
"id": "<string>",
"function_id": "<string>",
"organization_id": "<string>",
"function": {
"name": "<string>",
"owner_name": "<string>"
},
"status": "<string>",
"created_at": "2024-12-15T01:41:59.195000",
"started_at": "2024-12-15T01:41:59.195000",
"completed_at": "2024-12-15T01:41:59.195000",
"inputs": {},
"outputs": [],
"error": "<string>",
"visibility": "<string>",
"run_id": "<string>",
"children": {},
"restarts": [
{
"timestamp": "2024-12-15T01:41:59.195000",
"reason": "<string>",
"type": "preemption",
"run_id": "<string>"
}
]
}
],
"next_offset": -1
}
Authorizations
The Sieve API key to authenticate with.
Path Parameters
The owner of the function.
The name of the function.
The ID or ID prefix of the function version, or 'latest'.
Query Parameters
The maximum amount of jobs to show.
Exclude the first N jobs.
Response
The id of the job.
The id of the function that the job belongs to. This can be the first 7 characters of the full id.
The ID of the organization that submitted the function.
The status of the job. Possible values: 'queued', 'processing', 'error', 'finished', 'cancelled'
The UTC time the job was created.
"2024-12-15T01:41:59.195000"
The UTC time the job started processing by the function.
"2024-12-15T01:41:59.195000"
The UTC time the job was completed.
"2024-12-15T01:41:59.195000"
The error that the job ran into. Empty string if there's no error.
"public" or "private".
The run_id of the job.
Show child attributes
Show child attributes
The name of the output
The data of the output. Empty if the response is not from a job
The description of the output
The run id associated with this output
Job restart metadata
The UTC time the job restarted.
"2024-12-15T01:41:59.195000"
The reason the job restarted
The type of restart
preemption
, OOM
, error
The run id that restarted
Was this page helpful?
curl --request GET \
--url https://mango.sievedata.com/v2/functions/{owner_name}/{function_name}/versions/{version_slug}/jobs \
--header 'X-API-Key: <api-key>'
{
"data": [
{
"id": "<string>",
"function_id": "<string>",
"organization_id": "<string>",
"function": {
"name": "<string>",
"owner_name": "<string>"
},
"status": "<string>",
"created_at": "2024-12-15T01:41:59.195000",
"started_at": "2024-12-15T01:41:59.195000",
"completed_at": "2024-12-15T01:41:59.195000",
"inputs": {},
"outputs": [],
"error": "<string>",
"visibility": "<string>",
"run_id": "<string>",
"children": {},
"restarts": [
{
"timestamp": "2024-12-15T01:41:59.195000",
"reason": "<string>",
"type": "preemption",
"run_id": "<string>"
}
]
}
],
"next_offset": -1
}