Minakshi
08/28/2020, 10:47 PMnicholas
08/28/2020, 10:52 PMprefect.Client
), which means you can use a Flask or any other API to kick off a flow run, provided it has network access to the API (whether Server or Cloud).prefect.Client
with the following code:
import prefect
client = prefect.Client()
client.create_flow_run(flow_id="your_flow_id", parameters={"some_parameters": "that_change_per_run"})
Client
here: https://docs.prefect.io/api/latest/client/client.html#client-2Minakshi
08/28/2020, 11:07 PMnicholas
08/28/2020, 11:08 PMMinakshi
08/28/2020, 11:08 PMnicholas
08/28/2020, 11:09 PMMinakshi
08/28/2020, 11:09 PMnicholas
08/28/2020, 11:11 PMflow.run()
is a synchronous call, which will lock your current thread but will let you pass in parameters and an executor at runtime.Minakshi
08/28/2020, 11:12 PMnicholas
08/28/2020, 11:12 PMMinakshi
08/29/2020, 12:10 AM