Joshua Caskie
07/19/2024, 6:58 PMdeployment
configuration options for a YAML file deployment?Marvin
07/19/2024, 6:58 PMprefect.yaml
file:
# generic metadata
prefect-version: null
name: null
# preparation steps
build: null
push: null
# runtime steps
pull: null
# deployment configurations
deployments:
- # base metadata
name: null
version: null
tags: []
description: null
schedule: null
# flow-specific fields
entrypoint: null
parameters: {}
# infra-specific fields
work_pool: null
If you need more detailed information, you can refer to the full documentation here.Joshua Caskie
07/19/2024, 7:02 PMMarvin
07/19/2024, 7:02 PMschedules
section. Here's how you can do it:
### Example YAML Configuration
deployments:
- name: my_deployment
version: 1.0
schedule:
- cron: "0 0 * * *"
timezone: "America/Chicago"
active: false
- cron: "0 12 * * *"
timezone: "America/New_York"
active: true
- cron: "0 18 * * *"
timezone: "Europe/London"
active: true
### Notes:
1. cron: Specifies the cron schedule for the deployment.
2. timezone: Specifies the timezone for the cron schedule.
3. active: Determines whether the schedule is active or not.
For more details, you can refer to the Prefect documentation on schedules.Joshua Caskie
07/19/2024, 7:09 PMMarvin
07/19/2024, 7:09 PMbuild
section to null
. Here is how you can configure it:
### Example YAML Configuration Without Build
# generic metadata
prefect-version: null
name: my_deployment
# preparation steps
build: null
push: null
# runtime steps
pull: null
# deployment configurations
deployments:
- name: my_deployment
version: 1.0
tags: []
description: null
schedule: null
entrypoint: my_flow.py:my_flow
parameters: {}
work_pool:
name: my_work_pool
work_queue_name: my_work_queue
job_variables: {}
In this configuration:
- The build
section is set to null
, indicating that no build steps are required for this deployment.
For more details, you can refer to the Prefect documentation on deployments.Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.
Powered by