If I set the `run_config` for my flow like this: `...
# ask-community
z
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
No,
flow.run_config
is only used by flows executed with a prefect backend (cloud or server)
z
Okay, so if I run it locally, it will just ignore the run_config?
j
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