When i set up my flow with storage and an environm...
# prefect-community
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?
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!
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