Channels
announcements
ask-marvin
best-practices-coordination-plane
data-ecosystem
data-tricks-and-tips
events
find-a-prefect-job
geo-bay-area
geo-berlin
geo-boston
geo-chicago
geo-colorado
geo-dc
geo-israel
geo-japan
geo-london
geo-nyc
geo-seattle
geo-texas
gratitude
introductions
marvin-in-the-wild
pacc-clearcover-june-12-2023
pacc-may-31-2023
ppcc-may-16-2023
prefect-ai
prefect-aws
prefect-azure
prefect-cloud
prefect-community
prefect-contributors
prefect-dbt
prefect-docker
prefect-gcp
prefect-getting-started
prefect-integrations
prefect-kubernetes
prefect-recipes
prefect-server
prefect-ui
random
show-us-what-you-got
Powered by
Title
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?
4 Views
#prefect-community
Join Slack