7.5. Job States

When jobs are created on the call of a workflow, they can end up in specific state that

State

Description

Pending

The job is being populated with tasks through its discovery task and will begin when paths have been collected

Started

Some tasks within the job have started to be processed

Success

All tasks in a job have completed successfully

Failure

There was an error or failure when attempting a task within a job, meaning the job could not complete

Skipped

Based on the output of the provided discovery task, no tasks needed to be created so there is no work to

Cancelled

The job has been manually closed via request and all remaining task have been cancelled

7.6. Task States

When jobs create tasks, after performing their action on the provided files they can end up in specific state as seen below

State

Description

Pending

This task is has been created but has not yet been picked up by a site

Started

This task is now running on site

Success

This task has completed successfully

Failure

There was a unexpected error when attempting a task within a job, meaning the job could not complete and could not provide structured output

Error

There was a captured error when attempting a task within a job, meaning the job will not have processed all paths but has structured output of what has been completed. Any paths which were successfully processed will be handled by subsequent tasks in a task chain.

Skipped

This task has will have no work to perform so it has been automatically skipped by another task

Cancelled

Either a previous task has failed or the job has been manually cancelled, causing this task to no longer run

Note

Job and task states are updated asynchronously. There may be, for example, a short delay between a job/task completing and its state being reported as such.