Type object
File match prefect.yaml prefect.yml
Schema URL https://catalog.lintel.tools/schemas/schemastore/prefect-yaml/latest.json
Source https://raw.githubusercontent.com/PrefectHQ/prefect/refs/heads/main/schemas/prefect.yaml.schema.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Properties

prefect-version string | null
Default: null
name string | null
Default: null
build object[] | object | null
Default: null
push object[] | object | null
Default: null
pull object[] | object | null
Default: null
deployments DeploymentConfig[]

Definitions

ConcurrencyLimitSpec object
limit integer | null
Default: null
collision_strategy string | null
Default: null
grace_period_seconds integer | null
Default: null
CronSchedule object

Cron schedule

NOTE: If the timezone is a DST-observing one, then the schedule will adjust itself appropriately. Cron's rules for DST are based on schedule times, not intervals. This means that an hourly cron schedule will fire on every new schedule hour, not every elapsed hour; for example, when clocks are set back this will result in a two-hour pause as the schedule will fire the first time 1am is reached and the first time 2am is reached, 120 minutes later. Longer schedules, such as one that fires at 9am every morning, will automatically adjust for DST.

Args: cron (str): a valid cron string timezone (str): a valid timezone string in IANA tzdata format (for example, America/New_York). day_or (bool, optional): Control how croniter handles day and day_of_week entries. Defaults to True, matching cron which connects those values using OR. If the switch is set to False, the values are connected using AND. This behaves like fcron and enables you to e.g. define a job that executes each 2nd friday of a month by setting the days of month and the weekday.

cron string required
Examples: "0 0 * * *"
timezone string | null
Default: null
Examples: "America/New_York"
day_or boolean

Control croniter behavior for handling day and day_of_week entries.

Default: true
DeploymentConfig object
name string | null
Default: null
version string | null
Default: null
version_type string | null
Default: null
tags string | array | null
Default: null
description string | null
Default: null
schedules RawScheduleConfig | DeploymentScheduleCreate | IntervalSchedule | CronSchedule | RRuleSchedule | NoSchedule | object[] | null
Default: null
paused boolean | null
Default: null
concurrency_limit integer | ConcurrencyLimitSpec | null
Default: null
flow_name string | null
Default: null
entrypoint string | null
Default: null
parameters object
enforce_parameter_schema boolean | null
Default: null
build object[] | object | null
Default: null
push object[] | object | null
Default: null
pull object[] | object | null
Default: null
work_pool WorkPoolConfig | null
Default: null
triggers object[] | null
Default: null
sla TimeToCompletionSla | LatenessSla | FrequencySla[] | null
Default: null
DeploymentScheduleCreate object

The schedule for the deployment.

active boolean

Whether or not the schedule is active.

Default: true
max_scheduled_runs integer | null

The maximum number of scheduled runs for the schedule.

Default: null
parameters object

Parameter overrides for the schedule.

slug string | null

A unique identifier for the schedule.

Default: null
replaces string | null

The slug of an existing schedule that this schedule replaces. Used for renaming slugs.

Default: null
FrequencySla object

An SLA that triggers when a completed flow run is not detected in the specified time.

For example, if stale_after is 1 hour, if a flow run does not complete within an hour of the previous flow run, the SLA will trigger.

name string required

The name of the SLA. Names must be unique on a per-deployment basis.

stale_after number required

The amount of time after which a flow run is considered in violation.

severity string

The severity of the SLA.

Default: "moderate"
Values: "minor" "low" "moderate" "high" "critical"
enabled boolean | null

Whether the SLA is enabled.

Default: true
IntervalSchedule object

A schedule formed by adding interval increments to an anchor_date. If no anchor_date is supplied, the current UTC time is used. If a timezone-naive datetime is provided for anchor_date, it is assumed to be in the schedule's timezone (or UTC). Even if supplied with an IANA timezone, anchor dates are always stored as UTC offsets, so a timezone can be provided to determine localization behaviors like DST boundary handling. If none is provided it will be inferred from the anchor date.

NOTE: If the IntervalSchedule anchor_date or timezone is provided in a DST-observing timezone, then the schedule will adjust itself appropriately. Intervals greater than 24 hours will follow DST conventions, while intervals of less than 24 hours will follow UTC intervals. For example, an hourly schedule will fire every UTC hour, even across DST boundaries. When clocks are set back, this will result in two runs that appear to both be scheduled for 1am local time, even though they are an hour apart in UTC time. For longer intervals, like a daily schedule, the interval schedule will adjust for DST boundaries so that the clock-hour remains constant. This means that a daily schedule that always fires at 9am will observe DST and continue to fire at 9am in the local time zone.

Args: interval (datetime.timedelta): an interval to schedule on anchor_date (DateTime, optional): an anchor date to schedule increments against; if not provided, the current timestamp will be used timezone (str, optional): a valid timezone string

interval number required
anchor_date string
Examples: "2020-01-01T00:00:00Z"
format=date-time
timezone string | null
Default: null
Examples: "America/New_York"
LatenessSla object

An SLA that triggers when a flow run does not start within the specified window.

For example, if you schedule the deployment to run every day at 2:00pm and you pass within=timedelta(minutes=10) to this SLA, if a run hasn't started by 2:10pm the SLA violation will be recorded.

name string required

The name of the SLA. Names must be unique on a per-deployment basis.

within number required

The amount of time before a flow run is considered in violation.

severity string

The severity of the SLA.

Default: "moderate"
Values: "minor" "low" "moderate" "high" "critical"
enabled boolean | null

Whether the SLA is enabled.

Default: true
NoSchedule object
RRuleSchedule object

RRule schedule, based on the iCalendar standard (RFC 5545) as implemented in dateutils.rrule.

RRules are appropriate for any kind of calendar-date manipulation, including irregular intervals, repetition, exclusions, week day or day-of-month adjustments, and more.

Note that as a calendar-oriented standard, RRuleSchedules are sensitive to to the initial timezone provided. A 9am daily schedule with a daylight saving time-aware start date will maintain a local 9am time through DST boundaries; a 9am daily schedule with a UTC start date will maintain a 9am UTC time.

Args: rrule (str): a valid RRule string timezone (str, optional): a valid timezone string

rrule string required
timezone string | null
Default: "UTC"
Examples: "America/New_York"
RawScheduleConfig object

Strongly-typed schedule config that mirrors the CLI's accepted YAML shape. Exactly one of cron, interval, or rrule must be provided.

cron string | null
Default: null
interval string | null
Default: null
rrule string | null
Default: null
timezone string | null
Default: null
anchor_date string | null
Default: null
active boolean | string | null
Default: null
parameters object
slug string | null
Default: null
replaces string | null
Default: null
day_or boolean | string | null
Default: null
TimeToCompletionSla object

An SLA that triggers when a flow run takes longer than the specified duration.

name string required

The name of the SLA. Names must be unique on a per-deployment basis.

duration integer required

The maximum flow run duration allowed before the SLA is violated, expressed in seconds.

severity string

The severity of the SLA.

Default: "moderate"
Values: "minor" "low" "moderate" "high" "critical"
enabled boolean | null

Whether the SLA is enabled.

Default: true
WorkPoolConfig object
name string | null
Default: null
work_queue_name string | null
Default: null
job_variables object