https://prefect.io logo
d

Daniel Saxton

05/17/2022, 10:10 PM
hi all, what's the best way to have a flow that's only triggered via API call (i assume this is possible)? say we're using Prefect Cloud
j

James Sopkin

05/17/2022, 10:11 PM
Hi Daniel, schedules need to be configured and are not attached by default. Don't configure a schedule and you should be fine
d

Daniel Saxton

05/17/2022, 10:12 PM
thanks, what's the recommended way to trigger the flow run without using the UI? can this be done via the API?
j

James Sopkin

05/17/2022, 10:16 PM
Copy code
prefect run --name "name of flow"
https://docs.prefect.io/orchestration/flow-runs/creation.html#cli
I also attached some docs on creating flow runs.
There's also a section that covers creating a flow run through the imperative api if that's what you meant
d

Daniel Saxton

05/17/2022, 10:19 PM
👍
k

Kevin Kho

05/17/2022, 10:22 PM
You don’t even need Prefect installed. See this
👀 1
d

Daniel Saxton

05/21/2022, 4:01 PM
thanks @Kevin Kho
2 Views