Benson Mwangi

12/05/2021, 1:10 AM
Hi, I'm new to prefect and I was wondering if it's possible to trigger a flow through the graphql endpoint. I am currently self-hosting a prefect server and would like to trigger a flow from a separate system running off a UI. Would appreciate any insights or materials that can lead me to a solution. I've successfully installed prefect and able to execute some flows (via linux terminal) including scheduled flows but what I'm looking for is the ability to trigger a flow externally via the graphql api. Sorry for the beginner question 🙂

Kevin Kho

12/05/2021, 1:49 AM
Welcome to Prefect! You can use the Prefect client
from prefect.client.client import CLient
client = Client()
You can also hit the GraphQL API with a request.

Benson Mwangi

12/05/2021, 6:29 PM
Thank you very much!