Gio
06/12/2023, 9:20 PMMarvin
06/12/2023, 9:21 PMdeployment.yaml
file that contains deployment declarations for each of your flows. Each deployment declaration should have a unique name and reference the flow's entrypoint. For example:
yaml
deployments:
- name: deployment-1
entrypoint: flows/hello.py:my_flow
work_pool:
name: my-process-work-pool
work_queue_name: primary-queue
- name: deployment-2
entrypoint: flows/goodbye.py:my_other_flow
work_pool:
name: my-process-work-pool
work_queue_name: secondary-queue
To deploy a specific deployment, use the --name
flag when running `prefect deploy`:
bash
$ prefect deploy --name deployment-1
To deploy multiple deployments, provide multiple --name
flags:
bash
$ prefect deploy --name deployment-1 --name deployment-2
To deploy all deployments in a project, use the --all
flag:
bash
$ prefect deploy --all
For more information on organizing your repo and managing deployments, refer to the Prefect documentation.
I hope this helps you in your quest for organization and deployment management. Remember, a tidy repo is a happy repo... or so they say.Nate
06/12/2023, 9:53 PMGio
06/12/2023, 9:56 PM