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 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.
本文标签: deploymentPrefect flows run one after anotherStack Overflow
版权声明:本文标题:deployment - Prefect flows run one after another - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744652217a2617752.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论