@PublicAPI public enum TaskStatus extends Enum<TaskStatus> implements Serializable
Enum Constant and Description |
---|
ABORTED
The task has been aborted by an exception on an other task while the task is running.
|
FAILED
The task is failed
(only if max execution time has been reached and the node on which it was started is down).
|
FAULTY
The task has finished execution with error code (!=0) or exception.
|
FINISHED
The task has finished execution.
|
IN_ERROR
The task is suspended after first error and is waiting for a manual restart action.
|
NOT_RESTARTED
The task could not be restarted.
It means that the task could not be restarted after an error during the previous execution |
NOT_STARTED
The task could not be started.
It means that the task could not be started due to dependences failure. |
PAUSED
The task is paused.
|
PENDING
The task is in the scheduler pending queue.
|
RUNNING
The task is executing.
|
SKIPPED
The task was not executed: it was the non-selected branch of an IF/ELSE control flow action
|
SUBMITTED
The task has just been submitted by the user.
|
WAITING_ON_ERROR
The task is waiting for restart after an error.
|
WAITING_ON_FAILURE
The task is waiting for restart after a failure.
|
Modifier and Type | Method and Description |
---|---|
static List<TaskStatus> |
allExceptThese(TaskStatus... taskStatuses) |
boolean |
isTaskAlive() |
String |
toString() |
static TaskStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TaskStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TaskStatus SUBMITTED
public static final TaskStatus PENDING
public static final TaskStatus PAUSED
public static final TaskStatus RUNNING
public static final TaskStatus WAITING_ON_ERROR
public static final TaskStatus WAITING_ON_FAILURE
public static final TaskStatus FAILED
public static final TaskStatus NOT_STARTED
public static final TaskStatus NOT_RESTARTED
public static final TaskStatus ABORTED
public static final TaskStatus FAULTY
public static final TaskStatus FINISHED
public static final TaskStatus SKIPPED
public static final TaskStatus IN_ERROR
public static TaskStatus[] values()
for (TaskStatus c : TaskStatus.values()) System.out.println(c);
public static TaskStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isTaskAlive()
public String toString()
toString
in class Enum<TaskStatus>
Enum.toString()
public static List<TaskStatus> allExceptThese(TaskStatus... taskStatuses)