prefect.server.schemas.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:
StateType
CountByState
check_key
StateDetails
StateBaseModel
orm_dict
State
schema object and converting it into an ORM-compatible
format. Because the data
field is not writable on ORM states, this method
omits the data
field entirely for the purposes of constructing an ORM model.
If state data is required, an artifact must be created separately.
State
from_orm_without_result
data
field will not be eagerly loaded. In
these cases, sqlalchemy will attempt to lazily load the the relationship, which
will fail when called within a synchronous pydantic method.
This method will construct a State
object from an ORM model without a loaded
artifact and attach data passed using the with_data
argument to the data
field.
default_name_from_type
default_scheduled_start_time
is_scheduled
is_pending
is_running
is_completed
is_failed
is_crashed
is_cancelled
is_cancelling
is_final
is_paused
fresh_copy
result
result
result
result
to_state_create