Jobs
Get the Batch API's endpoint
cortex get <batch_api_name>Submit a Job
Data in the request
POST <batch_api_endpoint>:
{
"workers": <int>, # the number of workers to allocate for this job (required)
"timeout": <int>, # duration in seconds since the submission of a job before it is terminated (optional)
"sqs_dead_letter_queue": { # specify a queue to redirect failed batches (optional)
"arn": <string>, # arn of dead letter queue e.g. arn:aws:sqs:us-west-2:123456789:failed.fifo
"max_receive_count": <int> # number of a times a batch is allowed to be handled by a worker before it is considered to be failed and transferred to the dead letter queue (must be >= 1)
},
"item_list": {
"items": [ # a list items that can be of any type (required)
<any>,
<any>
],
"batch_size": <int>, # the number of items per batch (the handle_batch() function is called once per batch) (required)
}
"config": { # arbitrary input for this specific job (optional)
"string": <any>
}
}
RESPONSE:
{
"job_id": <string>,
"api_name": <string>,
"kind": "BatchAPI",
"workers": <int>,
"config": {<string>: <any>},
"api_id": <string>,
"sqs_url": <string>,
"timeout": <int>,
"sqs_dead_letter_queue": {
"arn": <string>,
"max_receive_count": <int>
},
"created_time": <string>
}S3 file paths
Newline delimited JSON files in S3
Get a job's status
Stop a job
Additional Information
Filtering files
Last updated