James Phoenix
02/08/2021, 1:22 PMclient.create_flow_run(flow_id="<flow id>")
emre
02/08/2021, 1:49 PMLocalRun
run_configs, and run them in the agent process.run_agent
:
https://github.com/PrefectHQ/prefect/blob/8ce99d9752b175eeaf8a0b15ba3d0a80c221b69e/src/prefect/core/flow.py#L1543
This, if I remember correctly, registers the flow with the correct run config, starts an agent locally, and tells server to start a flow run, which only the local agent can pick up.LocalAgent
in the flask route yourself:
https://github.com/PrefectHQ/prefect/blob/master/src/prefect/agent/local/agent.py
Note that you NEED your flow to be configured with LocalRun
if you want the flow to run in the agent process.James Phoenix
02/08/2021, 2:16 PM