admin管理员组

文章数量:1389866

I have two flows and for each of them a deployment. I want to run the second flow once the first one it's finished but when i run locally the deployments, i get the error 'Deployment not found'.

@flow def flow1_actions():

run_deployment(name="flow2_name/deployment_flow2_name")

I am expecting to have both flows run.

I have two flows and for each of them a deployment. I want to run the second flow once the first one it's finished but when i run locally the deployments, i get the error 'Deployment not found'.

@flow def flow1_actions():

run_deployment(name="flow2_name/deployment_flow2_name")

I am expecting to have both flows run.

Share asked Mar 14 at 14:04 Craciun BogdanCraciun Bogdan 1
Add a comment  | 

1 Answer 1

Reset to default 0

The way that you've setup run_deployment looks correct to me.
Here's a few things that I can suggest to troubleshoot:

  • Make sure your deployments are correctly named and registered. You should see a record for each deployment in the Prefect UI.

  • If you're using .serve() or a process worker to run your deployments locally, check that the deployed flows are accessible to those processes.

  • Make sure your prefect profile is configured correctly. You can run prefect config view in the terminal to see if your PREFECT_API_URL is pointing to the right Prefect server, where your deployments are stored.

本文标签: deploymentPrefect flows run one after anotherStack Overflow