Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review and clean up any unused worker environment variables. #1049

Open
sambles opened this issue May 23, 2024 · 2 comments
Open

Review and clean up any unused worker environment variables. #1049

sambles opened this issue May 23, 2024 · 2 comments
Assignees
Labels
Enhancement Small improvement or refinement.

Comments

@sambles
Copy link
Contributor

sambles commented May 23, 2024

Issue Description

For example MODEL_DATA_DIRECTORY was historically used to point the worker to mode data (set in conf.ini)

[default]
MODEL_DATA_DIRECTORY = /home/worker/model

In more recent versions its now only used to find the default oasislmf.json file

def get_oasislmf_config_path(settings, model_id=None):
""" Search for the oasislmf confiuration file
"""
conf_path = None
model_root = settings.get('worker', 'model_data_directory', fallback='/home/worker/model')

We would be better of using the explicit OASIS_OASISLMF_CONFIG=<path-to-model-config.json> and removing MODEL_DATA_DIRECTORY

  • Review all worker conf.ini options and remove any confusing / duplicated options.
@sambles sambles moved this to Todo in Oasis Dev Team Tasks May 23, 2024
@sambles sambles added the Enhancement Small improvement or refinement. label May 23, 2024
@sambles sambles self-assigned this May 23, 2024
@carlfischerjba
Copy link
Collaborator

Is this the same as the environment variable OASIS_MODEL_DATA_DIRECTORY used in the model registration script?

@sambles
Copy link
Contributor Author

sambles commented May 28, 2024

Oh good point.. it might be, i'd need to double check how its read into model_registration.sh but feels likely

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Small improvement or refinement.
Projects
Status: Todo
Development

No branches or pull requests

2 participants