TinyTick logoTinyTick

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;
}
ValueDescription
Scheduled0

Indicates that the task run was scheduled.

Started1

Indicates that the task run was started because it was due.

Succeeded2

Indicates that the task run finished successfully.

TimedOut3

Indicates that the task run finished because it timed out.

Errored4

Indicates that the task run finished because it threw an error.

Deleted5

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