Join Slack
Powered by
In the API, what is the difference between "Create...
# ask-community
s
Stefan
07/17/2022, 9:46 PM
In the API, what is the difference between "Create a flow run from Deployment" and "Create a flow run"? In the latter you have to specify a Deployment id anyway I see.
✅ 1
a
Anna Geller
07/17/2022, 11:02 PM
What are you trying to do? If you want to create a flow run from deployment, you need create_flow_run_from_deployment, as shown in this example
https://discourse.prefect.io/t/how-to-create-a-flow-run-from-deployment-orchestrator-pattern/803
s
Stefan
07/18/2022, 9:16 PM
Hi Anna! In the RestAPI, I can start a flow run accordingly:
https://orion-docs.prefect.io/api-ref/rest-api/#/Flow%20Runs/create_flow_run_flow_runs__post
I can also use this:
https://orion-docs.prefect.io/api-ref/rest-api/#/Deployments/create_flow_run_from_deployment_deployments__id__create_flow_run_post
What is the difference? Should not all registered flows have a Deployment anyway?
a
Anna Geller
07/22/2022, 10:51 AM
sorry for the late response, I think it depends on whether you created a deployment or not? did you solve your issue by now?
6
Views
Open in Slack
Previous
Next