Enum ExecutionState
- All Implemented Interfaces:
Serializable,Comparable<ExecutionState>
An enumeration of all states that a task can be in during its execution. Tasks usually start in
the state
CREATED and switch states according to this diagram:
CREATED -> SCHEDULED -> DEPLOYING -> INITIALIZING -> RUNNING -> FINISHED
| | | | |
| | | +-----+--------------+
| | V V
| | CANCELLING -----+----> CANCELED
| | |
| +-------------------------+
|
| ... -> FAILED
V
RECONCILING -> INITIALIZING | RUNNING | FINISHED | CANCELED | FAILED
It is possible to enter the RECONCILING state from CREATED state if job
manager fail over, and the RECONCILING state can switch into any existing task state.
It is possible to enter the FAILED state from any other state.
The states FINISHED, CANCELED, and FAILED are considered terminal
states.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis state marks "successfully completed".Restoring last possible valid state of the task if it has it. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ExecutionStateReturns the enum constant of this type with the specified name.static ExecutionState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CREATED
-
SCHEDULED
-
DEPLOYING
-
RUNNING
-
FINISHED
This state marks "successfully completed". It can only be reached when a program reaches the "end of its input". The "end of input" can be reached when consuming a bounded input (fix set of files, bounded query, etc) or when stopping a program (not cancelling!) which make the input look like it reached its end at a specific point. -
CANCELING
-
CANCELED
-
FAILED
-
RECONCILING
-
INITIALIZING
Restoring last possible valid state of the task if it has it.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isTerminal
public boolean isTerminal()
-