Skip to main content

prefect.server.schemas.core

Full schemas of Prefect REST API objects.

Classes

Flow

An ORM representation of flow data.

FlowRunPolicy

Defines of how a flow run should retry. Methods:

model_validate_list

populate_deprecated_fields

reset_fields

Reset the fields of the model that are in the _reset_fields set. Returns:
  • A new instance of the model with the reset fields.

CreatedBy

UpdatedBy

ConcurrencyLimitStrategy

Enumeration of concurrency collision strategies. Methods:

auto

Exposes enum.auto() to avoid requiring a second import to use AutoEnum

ConcurrencyOptions

Class for storing the concurrency config in database.

FlowRun

An ORM representation of flow run data. Methods:

set_name

TaskRunPolicy

Defines of how a task run should retry. Methods:

model_validate_list

populate_deprecated_fields

reset_fields

Reset the fields of the model that are in the _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 runs, which could include, constants, parameters, task runs or flow runs. Methods:

model_validate_list

reset_fields

Reset the fields of the model that are in the _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

An ORM representation of task run data. Methods:

set_name

validate_cache_key

DeploymentSchedule

Methods:

validate_max_scheduled_runs

VersionInfo

Methods:

model_validate_list

reset_fields

Reset the fields of the model that are in the _reset_fields set. Returns:
  • A new instance of the model with the reset fields.

Deployment

An ORM representation of deployment data.

ConcurrencyLimit

An ORM representation of a concurrency limit.

ConcurrencyLimitV2

An ORM representation of a v2 concurrency limit.

BlockType

An ORM representation of a block type

BlockSchema

An ORM representation of a block schema.

BlockSchemaReference

An ORM representation of a block schema reference.

BlockDocument

An ORM representation of a block document. Methods:

from_orm_model

validate_name_is_present_if_not_anonymous

BlockDocumentReference

An ORM representation of a block document reference. Methods:

validate_parent_and_ref_are_different

Configuration

An ORM representation of account info.

ServerDefaultResultStorage

Server-side default result storage configuration. Methods:

model_validate_list

reset_fields

Reset the fields of the model that are in the _reset_fields set. Returns:
  • A new instance of the model with the reset fields.

ServerDefaultResultStorageUpdate

Request payload for setting the server default result storage block. Methods:

model_validate_list

reset_fields

Reset the fields of the model that are in the _reset_fields set. Returns:
  • A new instance of the model with the reset fields.

SavedSearchFilter

A filter for a saved search model. Intended for use by the Prefect UI. Methods:

model_validate_list

reset_fields

Reset the fields of the model that are in the _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 the fields of the model that are in the _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

Given empirical information about the state of the work queue, evaluate its health status. Args:
  • late_runs_count: the count of late runs for the work queue.
  • last_polled: the last time the work queue was polled, if available.
Returns:
  • whether or not the work queue is healthy.

model_validate_list

reset_fields

Reset the fields of the model that are in the _reset_fields set. Returns:
  • A new instance of the model with the reset fields.

WorkQueueStatusDetail

Methods:

model_validate_list

reset_fields

Reset the fields of the model that are in the _reset_fields set. Returns:
  • A new instance of the model with the reset fields.

Agent

An ORM representation of an agent

WorkPoolStorageConfiguration

A representation of a work pool’s storage configuration Methods:

model_validate_list

reset_fields

Reset the fields of the model that are in the _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

model_validate

Worker

An ORM representation of a worker

Artifact

Methods:

from_result

validate_metadata_length

ArtifactCollection

Variable

FlowRunInput

CsrfToken