https://prefect.io logo
#prefect-community
Title
# prefect-community
m

Matthias

07/01/2020, 1:07 PM
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

josh

07/01/2020, 1:08 PM
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

Matthias

07/01/2020, 1:10 PM
Ah thanks 🙂