Update Environment Variable have no impact on the app

Which tool versions are you using?

SDK: 14.5.0
Platform: v23.11.5
Python: v3.10
Isolation mode: venv

Current Behavior

We have code that run based on the value of a Environment Variable.

It create a page if the variable is a certain value

app_id = os.environ.get(“APP_ID”)

if app_id == ‘BW6’:
page_bw6 = Page(‘BW6 Page’, views=[‘get_web_view’])

When updating the variable on the app page (on Viktor platform), the change doesn’t reflect on the app.

Expected Behavior

As soon as the Environment Variable is updated, the app should take in concideration its new value.

Context (optional, but preferred)

The App behave as expected on the Development Workspace using the command:

viktor-cli start -e APP_ID=“BW6”

or

viktor-cli start -e APP_ID=“NA”

Hi @TH-MDR ,

It sometimes takes a while before the environment variable is set. Could you exit the application workspace, and re-enter it to check if there is any change?

It eventually worked but it took few minutes (~10/15min maybe). I guess this is not something you can quickly switch, let say for testing purposes.

Would you have details on what it the expected time for the update?