golemcloud / golem

Golem is an open source durable computing platform that makes it easy to build and deploy highly reliable distributed systems.
https://learn.golem.cloud/
Apache License 2.0
507 stars 57 forks source link

Updating environment of an existing worker #842

Open vigoo opened 2 months ago

vigoo commented 2 months ago

A worker's environment (environment variables and command-line arguments) can only be set once when the worker is created. This is intentional as modifying them can lead to divergence as the worker's code can depend on them.

However, as we support updating workers, it is possible that an update introduces the need for a new environment variable and it is not possible to add it currently.

The following proposal would solve this:

noise64 commented 2 months ago

Just to make sure i understand: does this only allow adding env vars and not modifying existing ones, or both possible but with different flags?