Jobs

Get the TaskAPI endpoint

$ cortex get <task_api_name>

Submit a Job

POST <task_api_endpoint>:
{
    "timeout": <int>,  # duration in seconds since the submission of a job before it is terminated (optional)
    "config": {  # custom fields for this specific job (will override values in `config` specified in your api configuration) (optional)
        "string": <any>
    }
}

RESPONSE:
{
    "job_id": <string>,
    "api_name": <string>,
    "kind": "TaskAPI",
    "workers": 1,
    "config": {<string>: <any>},
    "api_id": <string>,
    "timeout": <int>,
    "created_time": <string>
}

Get a job's status

Or make a GET request to <task_api_endpoint>?jobID=<jobID>:

Stop a job

Or make a DELETE request to <task_api_endpoint>?jobID=<jobID>:

Last updated