prefect.states
to_state_create
StateCreate
type which can be used to set the state of
a run in the API.
This method will drop this state’s data
if it is not a result type. Only
results should be sent to the API. Other data is only available locally.
get_state_result
State.result()
format_exception
exception_to_crashed_state
exception_to_failed_state
Failed
states from exceptions
return_value_to_state
State
the run should
be placed in.
data
attributeget_state_exception
TypeError
will be returned.
When a wrapper exception is returned, the type will be:
FailedRun
if the state type is FAILED.CrashedRun
if the state type is CRASHED.CancelledRun
if the state type is CANCELLED.raise_state_exception
is_state_iterable
False
even if they contain states.
Scheduled
Scheduled
states.
Returns:
Completed
Completed
states.
Returns:
Running
Running
states.
Returns:
Failed
Failed
states.
Returns:
Crashed
Crashed
states.
Returns:
Cancelling
Cancelling
states.
Returns:
Cancelled
Cancelled
states.
Returns:
Pending
Pending
states.
Returns:
Paused
Paused
states.
Returns:
Suspended
Suspended
states.
Returns:
AwaitingRetry
AwaitingRetry
states.
Returns:
AwaitingConcurrencySlot
AwaitingConcurrencySlot
states.
Returns:
Retrying
Retrying
states.
Returns:
Late
Late
states.
Returns:
StateGroup
all_completed
all_final
any_cancelled
any_failed
any_paused
counts_message
fail_count