prefect.client.schemas.objects
Functions
data_discriminator
Classes
RunType
Methods:
auto
enum.auto()
to avoid requiring a second import to use AutoEnum
StateType
Enumeration of state types.
Methods:
auto
enum.auto()
to avoid requiring a second import to use AutoEnum
WorkPoolStatus
Enumeration of work pool statuses.
Methods:
auto
enum.auto()
to avoid requiring a second import to use AutoEnum
display_name
WorkerStatus
Enumeration of worker statuses.
Methods:
auto
enum.auto()
to avoid requiring a second import to use AutoEnum
DeploymentStatus
Enumeration of deployment statuses.
Methods:
auto
enum.auto()
to avoid requiring a second import to use AutoEnum
WorkQueueStatus
Enumeration of work queue statuses.
Methods:
auto
enum.auto()
to avoid requiring a second import to use AutoEnum
ConcurrencyLimitStrategy
Enumeration of concurrency limit strategies.
Methods:
auto
enum.auto()
to avoid requiring a second import to use AutoEnum
ConcurrencyOptions
Class for storing the concurrency config in database.
Methods:
model_validate_list
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.
ConcurrencyLimitConfig
Class for storing the concurrency limit config in database.
Methods:
model_validate_list
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.
StateDetails
Methods:
model_validate_list
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.
to_run_result
State
The state of a run.
Methods:
aresult
aresult
aresult
aresult
default_name_from_type
default_scheduled_start_time
fresh_copy
is_cancelled
is_cancelling
is_completed
is_crashed
is_failed
is_final
is_paused
is_pending
is_running
is_scheduled
model_copy
result
result
result
result
raise_on_failure
: a boolean specifying whether to raise an exception if the state is of typeFAILED
and the underlying data is an exception. When flow was run in a different memory space (usingrun_deployment
), this will only raise iffetch
isTrue
.retry_result_failure
: a boolean specifying whether to retry on failures to load the result from result storage
TypeError
: If the state is failed but the result is not an exception.
- The result of the run
raise_on_failure
from a flow run in a different memory space
set_unpersisted_results_to_none
FlowRunPolicy
Defines of how a flow run should be orchestrated.
Methods:
model_validate_list
populate_deprecated_fields
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.
FlowRun
Methods:
set_default_name
TaskRunPolicy
Defines of how a task run should retry.
Methods:
model_validate_list
populate_deprecated_fields
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.
validate_configured_retry_delays
validate_jitter_factor
RunInput
Base class for classes that represent inputs to task runs, which
could include, constants, parameters, or other task runs.
Methods:
model_validate_list
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.
TaskRunResult
Represents a task run result input to another task run.
FlowRunResult
Parameter
Represents a parameter input to a task run.
Constant
Represents constant input value to a task run.
TaskRun
Methods:
set_default_name
Workspace
A Prefect Cloud workspace.
Expected payload for each workspace returned by the me/workspaces
route.
Methods:
api_url
handle
account_handle
/ workspace_handle
model_validate_list
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.
ui_url
IPAllowlistEntry
Methods:
model_validate_list
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.
IPAllowlist
A Prefect Cloud IP allowlist.
Expected payload for an IP allowlist from the Prefect Cloud API.
Methods:
model_validate_list
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.
IPAllowlistMyAccessResponse
Expected payload for an IP allowlist access response from the Prefect Cloud API.
Methods:
model_validate_list
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.
BlockType
An ORM representation of a block type
BlockSchema
A representation of a block schema.
BlockDocument
An ORM representation of a block document.
Methods:
serialize_data
validate_name_is_present_if_not_anonymous
Flow
An ORM representation of flow data.
DeploymentSchedule
VersionInfo
Methods:
model_validate_list
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.
BranchingScheduleHandling
DeploymentBranchingOptions
Deployment
An ORM representation of deployment data.
ConcurrencyLimit
An ORM representation of a concurrency limit.
BlockSchemaReference
An ORM representation of a block schema reference.
BlockDocumentReference
An ORM representation of a block document reference.
Methods:
validate_parent_and_ref_are_different
Configuration
An ORM representation of account info.
SavedSearchFilter
A filter for a saved search model. Intended for use by the Prefect UI.
Methods:
model_validate_list
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.
SavedSearch
An ORM representation of saved search data. Represents a set of filter criteria.
Log
An ORM representation of log data.
QueueFilter
Filter criteria definition for a work queue.
Methods:
model_validate_list
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.
WorkQueue
An ORM representation of a work queue
WorkQueueHealthPolicy
Methods:
evaluate_health_status
late_runs
: the count of late runs for the work queue.last_polled
: the last time the work queue was polled, if available.
- whether or not the work queue is healthy.
model_validate_list
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.
WorkQueueStatusDetail
Methods:
model_validate_list
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.
Agent
An ORM representation of an agent
WorkPoolStorageConfiguration
A work pool storage configuration
Methods:
model_validate_list
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.
WorkPool
An ORM representation of a work pool
Methods:
helpful_error_for_missing_default_queue_id
is_managed_pool
is_push_pool
Worker
An ORM representation of a worker
Artifact
Methods:
validate_metadata_length
ArtifactCollection
Variable
FlowRunInput
Methods:
decoded_value
- the decoded value
GlobalConcurrencyLimit
An ORM representation of a global concurrency limit
CsrfToken
Integration
A representation of an installed Prefect integration.
Methods:
model_validate_list
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.
WorkerMetadata
Worker metadata.
We depend on the structure of integrations
, but otherwise, worker classes
should support flexible metadata.
Methods:
model_validate_list
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.