最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

deployment - Prefect flows run one after another - Stack Overflow

programmeradmin2浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论