Create a run
This endpoint has been deprecated and may be removed in future versions of the API.
Creates a new run object for a job.
Path Parameters
Possible values: <= 1024 characters
The name of the namespace.
Possible values: <= 1024 characters
The name of the job.
Request Body
An optional user-provided unique ID of the run. A run ID must be an UUID. If an ID for the run is not provided, a random UUID will be generated for the given run.
An ISO-8601 timestamp representing the nominal start time of the run.
An ISO-8601 timestamp representing the nominal end time of the run.
The arguments of the run.
- 201
CREATED
Schema
The ID of the run.
An ISO-8601 timestamp representing the date/time the run was created.
An ISO-8601 timestamp representing the date/time the run was updated.
An ISO-8601 timestamp representing the nominal start time of the run.
An ISO-8601 timestamp representing the nominal end time of the run.
Possible values: [NEW
, RUNNING
, COMPLETED
, FAILED
, ABORTED
]
The current state of the run.
An ISO-8601 timestamp representing the start time of the run.
An ISO-8601 timestamp representing the end time of the run.
The total duration of the run. Measured in milliseconds.
The arguments of the run.
facets object
jobVersion object
inputDatasetVersions object[]
outputDatasetVersions object[]
A key/value pair that must be of type string
. A context can be used for getting additional details about the job.
facets object
{
"id": "870492da-ecfb-4be0-91b9-9a89ddd3db90",
"createdAt": "2019-05-09T19:49:24.201361Z",
"updatedAt": "2019-05-09T19:49:24.201361Z",
"nominalStartTime": null,
"nominalEndTime": null,
"state": "COMPLETED",
"startedAt": "2019-05-09T15:17:32.690346",
"endedAt": "2019-05-09T20:05:46.815920Z",
"durationMs": 4250894125,
"args": {
"email": "me@example.com",
"emailOnFailure": "false",
"emailOnRetry": "true",
"retries": "1"
},
"context": {
"SQL": "SELECT * FROM mytable;"
},
"facets": {}
}
POST /namespaces/:namespace/jobs/:job/runs
Request
Request
curl -L -X POST 'http://localhost:5000/api/v1/namespaces/:namespace/jobs/:job/runs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"args": {
"email": "me@example.com",
"emailOnFailure": false,
"emailOnRetry": true,
"retries": 1
}
}'
curl -L -X POST 'http://localhost:5000/api/v1/namespaces/:namespace/jobs/:job/runs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"args": {
"email": "me@example.com",
"emailOnFailure": false,
"emailOnRetry": true,
"retries": 1
}
}'
curl -L -X POST 'http://localhost:5000/api/v1/namespaces/:namespace/jobs/:job/runs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"args": {
"email": "me@example.com",
"emailOnFailure": false,
"emailOnRetry": true,
"retries": 1
}
}'
curl -L -X POST 'http://localhost:5000/api/v1/namespaces/:namespace/jobs/:job/runs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"args": {
"email": "me@example.com",
"emailOnFailure": false,
"emailOnRetry": true,
"retries": 1
}
}'
curl -L -X POST 'http://localhost:5000/api/v1/namespaces/:namespace/jobs/:job/runs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"args": {
"email": "me@example.com",
"emailOnFailure": false,
"emailOnRetry": true,
"retries": 1
}
}'
curl -L -X POST 'http://localhost:5000/api/v1/namespaces/:namespace/jobs/:job/runs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"args": {
"email": "me@example.com",
"emailOnFailure": false,
"emailOnRetry": true,
"retries": 1
}
}'
curl -L -X POST 'http://localhost:5000/api/v1/namespaces/:namespace/jobs/:job/runs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"args": {
"email": "me@example.com",
"emailOnFailure": false,
"emailOnRetry": true,
"retries": 1
}
}'
curl -L -X POST 'http://localhost:5000/api/v1/namespaces/:namespace/jobs/:job/runs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"args": {
"email": "me@example.com",
"emailOnFailure": false,
"emailOnRetry": true,
"retries": 1
}
}'
curl -L -X POST 'http://localhost:5000/api/v1/namespaces/:namespace/jobs/:job/runs' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"args": {
"email": "me@example.com",
"emailOnFailure": false,
"emailOnRetry": true,
"retries": 1
}
}'