Thomas La Piana

05/05/2020, 11:35 AM
When i set up my flow with storage and an environment and then call
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

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

Thomas La Piana

05/06/2020, 6:22 AM
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