You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Sometimes an environment variable is updated before using the dora-cli. But because the coordinator and the daemon are background process. They do not see the updated environment variable. This can generate some confusion.
To Reproduce
Steps to reproduce the behavior:
Dora start daemon: dora up
Change an env variable
Start a new dataflow: dora start dataflow.yaml
bis. Expect the env variable to be the latest one but see the previous one or an empty one
Stop dataflow: dora stop
Destroy dataflow: dora destroy
Expected behavior
I would expect the cli to pass the latest value to the daemon and coordinator.
The text was updated successfully, but these errors were encountered:
So this is the thing, when we use environment variable within the YAML Graph, it uses old env variables.
In the case we think that environment variables should not be shared in a distributed environment which I can understand, maybe we should change our approach to using variables.
Ah, understood! So I guess the main issue is the env expansion that we introduced in 933dadc. For some cases (such as the $HOME example in the commit description) we want that the expansion happens on the target machine, but in other cases we want it to happen on the CLI machine.
I'm fine with changing the behavior to do the env expansion on the CLI machine already, but I fear that there is always some chance of confusion, depending on what you expect. Not sure what we can do to avoid this though, aside from documenting it clearly....
Describe the bug
Sometimes an environment variable is updated before using the dora-cli. But because the coordinator and the daemon are background process. They do not see the updated environment variable. This can generate some confusion.
To Reproduce
Steps to reproduce the behavior:
dora up
dora start dataflow.yaml
dora stop
dora destroy
Expected behavior
I would expect the cli to pass the latest value to the daemon and coordinator.
The text was updated successfully, but these errors were encountered: