<@ULVA73B9P> what are all of the `deployment` conf...
# marvin-in-the-wild
j
@Marvin what are all of the
deployment
configuration options for a YAML file deployment?
m
The YAML file for Prefect deployment includes a variety of configuration options. Here is the base structure for the
prefect.yaml
file:
Copy code
# 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.
j
@Marvin how to configure schedules for YAML deployment?
m
To configure schedules in a YAML deployment file for Prefect, you can use the
schedules
section. Here's how you can do it: ### Example YAML Configuration
Copy code
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.
j
@Marvin YAML deployment, how to specify no build
m
To specify no build in a YAML deployment file for Prefect, you can set the
build
section to
null
. Here is how you can configure it: ### Example YAML Configuration Without Build
Copy code
# 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.