Vlad S
07/11/2024, 8:10 PMMarvin
07/11/2024, 8:11 PMpython
from prefect import flow
@flow
def my_flow():
print("Hello from my flow!")
2. Create Deployment for Each Work Pool: Use the Prefect CLI to create deployments for each work pool with unique names.
bash
prefect deployment build my_flow.py:my_flow -n "my_flow_workpool_a" -q "workpool-a"
prefect deployment build my_flow.py:my_flow -n "my_flow_workpool_b" -q "workpool-b"
Here, -n
specifies the deployment name and -q
specifies the work pool queue. By giving each deployment a unique name, you ensure there are no conflicts.
For more detailed information, refer to the Prefect official documentation (when available).
If you have further questions, feel free to ask.Kevin Grismore
07/11/2024, 8:22 PMflow_name/deployment_name
. behind the scenes every deployment has a uuid tooKevin Grismore
07/11/2024, 8:22 PMVlad S
07/11/2024, 8:23 PMKevin Grismore
07/11/2024, 8:24 PMVlad S
07/11/2024, 8:24 PM