Hi! What is the proper way to kick off a flow run ...
# prefect-community
m
Hi! What is the proper way to kick off a flow run while executing something? e.g. I have someone click a button on a website and I would like to async kick off the flow run on my Dask Environment. Just calling
flow.run()
is running synchronous here, right?
j
Yeah calling
flow.run
is synchronous. For your use case you would probably want to use an API backend, either core’s server or Cloud, and create a flow run using either the core client or the graphql API https://docs.prefect.io/orchestration/concepts/flow_runs.html#creating-a-flow-run
m
Ah thanks 🙂