z

    Zach

    1 year ago
    If I set the
    run_config
    for my flow like this:
    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?
    Jim Crist-Harif

    Jim Crist-Harif

    1 year ago
    No,
    flow.run_config
    is only used by flows executed with a prefect backend (cloud or server)
    z

    Zach

    1 year ago
    Okay, so if I run it locally, it will just ignore the run_config?
    Jim Crist-Harif

    Jim Crist-Harif

    1 year ago
    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.