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 11 Answer
Reset to default 0The 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.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744652218a4585968.html
评论列表(0条)