v1

latestOpenAPI 3.0.22026-07-17144042.9 KB
Manage Jobs

Get job status

Retrieve job status

get/jobs/{jobId}/status

Path parameters

jobIdstring required

The unique identifier of the job.

Response

The Job's runtime status

desiredAction'START' | 'CANCEL' | 'RESUME'

Description of possible actions:

  • START (Request to start the job execution. Only applicable for jobs which do not start automatically, because they're in state NOT_READY. See description of "state".)
  • CANCEL (Request to cancel the job execution. This will stop the execution of all tasks of the job. Later the job can be resumed using the RESUME action.)
  • RESUME (Only applicable to jobs in states CANCELLED or FAILED and being "resumable" - See: state FAILED. Requests to start the execution again. The system will try to continue the execution from the point at which it previously stopped.)
state'NOT_READY' | 'SUBMITTED' | 'PENDING' | 'RUNNING' | 'CANCELLING' | 'CANCELLED' | 'FAILED' | 'RESUMING' | 'SUCCEEDED'

Description of possible states:

  • NOT_READY (The job is not ready to be started yet as not all pre-conditions are met. E.g. that could be the input data was not provided by the user yet.)
  • SUBMITTED (The job is ready for execution, but was not started yet.)
  • PENDING (The system is trying to start the job, but it is still waiting for free execution resources.)
  • RUNNING (The job execution is currently in progress.)
  • CANCELLING (The job got the signal that it should be cancelled and is currently in the progress of cancelling all its internal steps and performing the clean up work.)
  • CANCELLED (Terminal state. The job was cancelled. That could be done by the request of the job owner, or because the system had to cancel the job. A job can be resumed if its "resumable" flag is true. See: desiredAction: RESUME)
  • FAILED (Terminal state. The job failed, because one of its internal steps failed. A job can be resumed if its "resumable" flag is true. See: desiredAction: RESUME)
  • RESUMING (The job got the signal to resume execution after it was previously cancelled or has failed. The job currently is preparing to start the execution again.)
  • SUCCEEDED (The job is completed. All its work has been done and all outputs are ready.)
lastUpdatedAtinteger

A timestamp in milliseconds of when the job's status was updated the last time.

startedAtinteger

A timestamp in milliseconds of when the job was started.

estimatedProgressnumber float

An estimation of the progress of the job. This is a value between 0 .. 1 where 0 means 0% and 1 means 100%.

estimatedEndTimeinteger

A timestamp in milliseconds of when the job most probably will complete its execution. This is a rough estimation and the actual value could differ.

Example response

{
  "state": "RUNNING",
  "lastUpdatedAt": 123456789,
  "startedAt": "123456789,",
  "estimatedProgress": 0.5,
  "estimatedEndTime": 123456789
}