https://prefect.io logo
z

Zach

12/10/2020, 5:50 PM
If I set the
run_config
for my flow like this:
Copy code
with Flow("dask_flow_test", run_config=KubernetesRun()) as flow:
Then if I run it locally, will it create a kubernetes job? If I don't want it to create a kuberentes job when I run it locally, should I instead set the
run_config
to
LocalRun
there, and then before I register the flow I can set it to
KubernetesRun
instead?
j

Jim Crist-Harif

12/10/2020, 5:50 PM
No,
flow.run_config
is only used by flows executed with a prefect backend (cloud or server)
z

Zach

12/10/2020, 5:51 PM
Okay, so if I run it locally, it will just ignore the run_config?
j

Jim Crist-Harif

12/10/2020, 5:51 PM
Of the 3 config options (
run_config
,
storage
,
executor
), only
flow.executor
is used by
flow.run
, ther others are cloud/server only.
yes, that is correct.
👍 1