Thomas La Piana

    Thomas La Piana

    2 years ago
    When i set up my flow with storage and an environment and then call
    flow.run()
    locally, it automatically defaults to the local executor instead of using the environment that i set for it, but when i register it and a kube runner picks it up it runs it with the correct environment. does anyone know why?
    Zachary Hughes

    Zachary Hughes

    2 years ago
    Hi @Thomas La Piana! As it stands right now, environments are primarily for runs picked up by agents. So when you call
    flow.run()
    directly, your flow is run without an environment, meaning it defaults to the
    LocalExecutor
    . To work around that, you should be able to provide an executor to
    run
    , eg
    flow.run(executor=YourDesiredExecutor)
    . I think there's some room for us to clarify environments and executors, so thanks for putting that on our radar!
    Thomas La Piana

    Thomas La Piana

    2 years ago
    ohh got it. im working on a custom environment and was hoping i could force it to run locally with an environment to speed up development