Job status
A job’s status could be any of the following:
Status | Description | How the state relates to the client |
---|---|---|
Running | Normal operational state of a job. A job enters the Running state as soon as it is created. The system schedules pending tasks for processing, if there are resources available. |
The client can send new tasks. |
Done | Successful end state of a job. | The client cannot send new tasks. |
Suspended | A job enters the Suspended state if a user performs an administrative operation to forcefully suspend the job. When a job is suspended, any running tasks are given a grace period (suspendGracePeriod in the application profile) to finish. If they do not finish before the grace period, the service instance on which they are running is killed, the task is re-queued and placed in the Pending state. No pending tasks are scheduled until the job is resumed. All re-queued tasks are rerun when the job resumes. |
There is no impact to the client. The client can send new tasks. |
Aborted | A job could end in the Aborted state if:
|
The client receives an exception to indicate that the job was aborted. It is no longer able to operate on the job. |