Hi all :slightly_smiling_face: I was wondering - i...
# ask-community
a
Hi all 🙂 I was wondering - is it possible to trigger Prefect workflow externally (using Prefect Core deployed on my machine - not Prefect Cloud)? Thanks for your help!
d
Hi @Atalya! At the end of the day, Prefect Flows are just python files that can be executed wherever and however python can 😄
Prefect Cloud is certainly our recommendation, and includes monitoring, alerting, and orchestration out-of-the-box
But you can run a flow anywhere you can call
flow.run()
a
Thanks! Can I trigger a flow from another software using an API? Let's say the trigger is not known ahead, and happens in an external system, what are the best practices here?
d
Best practice is to use Prefect Cloud or Prefect Server, which have full GraphQL APIs that you can use to kick off Flow Runs in that case
The only piece of infrastructure you need on your machine is an Agent, thanks to our Hybrid Model
I recommend checking out our orchestration docs to get started https://docs.prefect.io/orchestration/tutorial/overview.html
a
Thanks!