Task Status
- class ska_control_model.TaskStatus(value)
The status of a task.
A task is any operation that is being performed asynchronously.
- ABORTED = 3
The task has been aborted.
- COMPLETED = 5
The task was completed.
Note that this does not necessarily imply that the task was executed successfully. Whether the task succeeded or failed is a matter for the
ResultCode
. TheCOMPLETED
value indicates only that execution of the task ran to completion.
- FAILED = 7
The task failed to complete.
Note that this should not be used for a task that executes to completion, but does not achieve its goal. This kind of domain-specific notion of “succeeded” versus “failed” should be passed in a
ResultCode
. Here,FAILED
means that the task executor has detected a failure of the task to run to completion. For example, execution of the task might have resulted in the raising of an uncaught exception.
- IN_PROGRESS = 2
The task is being executed.
- NOT_FOUND = 4
The task is not found.
- QUEUED = 1
The task has been accepted and will be executed at a future time.
- REJECTED = 6
The task was rejected.
- STAGING = 0
The request to execute the task has not yet been acted upon.