https://prefect.io logo
p

Pedro Martins

01/07/2022, 1:30 PM
Hey there! What is the difference between using the
client.create_flow_run(flow_id, parameters)
and
flow.run(parameters)
. Are they equivalent? Would the
flow.run
connect to the client and run the latest version of the flow?
a

Anna Geller

01/07/2022, 1:37 PM
Client triggers a backend flow run (running on your agent), while
flow.run()
triggers a local run on your local development machine
1
p

Pedro Martins

01/07/2022, 1:43 PM
Thank you @Anna Geller!