Task status

A task’s status could be any of the following:
Status Description
Running Normal operational state of a task.

The system schedules pending tasks for processing, if there are resources available.

Done Successful end state of a task.

A task is done when it has successfully completed and output is available.

Pending A task enters the Pending state if:
  • Task is waiting for system resources
  • Task did not complete successfully and has not exceeded its taskRetryLimit as defined in the application profile.
  • The job to which the task belongs to is suspended. 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. Any tasks that were re-queued are rerun when the job resumes.
  • CPU slot on which the task is running is reclaimed by the system and the task did no complete within the grace period (suspendGracePeriod in the application profile).
Canceled A task enters the Canceled state if a user performs an administrative operation to forcefully cancel the job to which the task belongs or if the task is killed while it is in the running state.
Error A task could end in the Error state if:
  • Service event occurred (where actionOnWorkload is set to fail) while executing SessionEnter or SessionUpdate methods

  • Task exceeded its taskRetryLimit, as defined in the application profile.