State

State

In addition to the parameters detailed for each endpoint in this section, tasks also have a special property state to help you understand the task's most recent status. The following integer values are valid task states:

ValueDescription
0Unassigned: task has not yet been assigned to a worker.
1Assigned: task has been assigned to a worker.
2Active: task has been started by its assigned worker.
3Completed: task has been completed by its assigned worker. Includes both successful and failed completions.

A Task's state cannot be modified explicitly with the exception of Complete task