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
auto
enum.auto()
to avoid requiring a second import to use AutoEnum
CountByState
check_key
model_validate_list
reset_fields
_reset_fields
set.
Returns:
StateDetails
model_validate_list
reset_fields
_reset_fields
set.
Returns:
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
default_name_from_type
default_scheduled_start_time
fresh_copy
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.
is_cancelled
is_cancelling
is_completed
is_crashed
is_failed
is_final
is_paused
is_pending
is_running
is_scheduled
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.
result
result
result
result
to_state_create