deployment - Prefect flows run one after another - Stack Overflow

I have two flows and for each of them a deployment. I want to run the second flow once the first one it

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744652218a4585968.html

相关推荐

  • deployment - Prefect flows run one after another - Stack Overflow

    I have two flows and for each of them a deployment. I want to run the second flow once the first one it

    1天前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信