parsl.dataflow.states.States
- class parsl.dataflow.states.States(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Enumerates the states a parsl task may be in.
These states occur inside the task record for a task inside a
DataFlowKernel
and in the monitoring database.In a single successful task execution, tasks will progress in this sequence:
pending -> launched -> running -> running_ended -> exec_done
Other states represent deviations from this path, either due to failures, or to deliberate changes to how tasks are executed (for example due to join_app, or memoization).
All tasks should end up in one of the states listed in
FINAL_STATES
.Methods
conjugate
Returns self, the complex conjugate of any int.
bit_length
()Number of bits necessary to represent self in binary.
bit_count
()Number of ones in the binary representation of the absolute value of self.
to_bytes
([length, byteorder, signed])Return an array of bytes representing an integer.
from_bytes
([byteorder, signed])Return the integer represented by the given array of bytes.
as_integer_ratio
()Return integer ratio.
__init__
(*args, **kwds)Attributes
real
the real part of a complex number
imag
the imaginary part of a complex number
numerator
the numerator of a rational number in lowest terms
denominator
the denominator of a rational number in lowest terms
Task is known to parsl but cannot run yet.
Task is running on a resource.
Task has been executed successfully.
Task has failed and no more attempts will be made to run it.
Dependencies of this task failed, so it is marked as failed without even an attempt to launch it.
Task has been passed to a
ParslExecutor
for execution.Task has failed, but can be retried
Task was found in the memoization table, so it is marked as done without even an attempt to launch it.
Task is a join_app, joining on internal tasks.
Like States.running, this state is also not observed by the DFK, but instead only by monitoring.
- dep_fail = 5[source]
Dependencies of this task failed, so it is marked as failed without even an attempt to launch it.
- joining = 10[source]
Task is a join_app, joining on internal tasks. The task has run its own Python code, and is now waiting on other tasks before it can make further progress (to a done/failed state).
- launched = 7[source]
Task has been passed to a
ParslExecutor
for execution.
- memo_done = 9[source]
Task was found in the memoization table, so it is marked as done without even an attempt to launch it.
- pending = 0[source]
Task is known to parsl but cannot run yet. Usually, a task cannot run because it is waiting for dependency tasks to complete.
- running = 2[source]
Task is running on a resource. This state is special - a DFK task record never goes to States.running state; but the monitoring database may represent a task in this state based on non-DFK information received from monitor_wrapper.