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
Dylan
03/29/2021, 3:40 PM
Hi @Atalya!
At the end of the day, Prefect Flows are just python files that can be executed wherever and however python can 😄
Dylan
03/29/2021, 3:41 PM
Prefect Cloud is certainly our recommendation, and includes monitoring, alerting, and orchestration out-of-the-box
Dylan
03/29/2021, 3:41 PM
But you can run a flow anywhere you can call
flow.run()
a
Atalya
03/29/2021, 8:03 PM
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
Dylan
03/29/2021, 8:09 PM
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
Dylan
03/29/2021, 8:09 PM
The only piece of infrastructure you need on your machine is an Agent, thanks to our Hybrid Model