An Hoang
12/13/2021, 5:04 PMprefect run --execute
. I was going to do ShellTask("prefect run --execute").run()
but thought there might be another way. Maybe create_flow_run
?Kevin Kho
An Hoang
12/13/2021, 5:13 PMprefect.cli.run.run
de-decorated? And what is the the difference between create_flow_run
, execute_flow_run_in_subprocess
and prefect.cli.run.run(execute=True)
?An Hoang
12/13/2021, 5:14 PMZanie
prefect.cli.run.run.callback
provides access to the undecorated functionZanie
Zanie
create_flow_run
is a task that does the first step then relies on an agent to perform executionZanie
prefect run --execute
does both steps. It creates a flow run with a label that no agent has (so the agents do not execute it) then executes the flow in a subprocess.An Hoang
12/13/2021, 5:22 PM