TaskRunReason
The TaskRunReason
enum is used to indicate why a task run changed, most usefully when it finishes.
{
Scheduled: 0;
Started: 1;
Succeeded: 2;
TimedOut: 3;
Errored: 4;
Deleted: 5;
}
Value | Description | |
---|---|---|
Scheduled | 0 | Indicates that the task run was scheduled. |
Started | 1 | Indicates that the task run was started because it was due. |
Succeeded | 2 | Indicates that the task run finished successfully. |
TimedOut | 3 | Indicates that the task run finished because it timed out. |
Errored | 4 | Indicates that the task run finished because it threw an error. |
Deleted | 5 | Indicates that the task run finished because the task run was deleted while running. |
The enum is used to listen to just certain types of task run completions (success, timeouts, or errors), and is also passed to a TaskRunRunningListener
function.
Since
v1.2.0