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

Support local config file in WorkloadManagementScheduler #694

Open
cibinmathew opened this issue Jul 13, 2023 · 0 comments · May be fixed by #695
Open

Support local config file in WorkloadManagementScheduler #694

cibinmathew opened this issue Jul 13, 2023 · 0 comments · May be fixed by #695

Comments

@cibinmathew
Copy link

Feature Request
In WorkloadManagementScheduler/wlm_scheduler.py
Currently both inplace configuration and json files stored in s3 are supported.
Additionally add support for local json file stored in lambda's code dir.

if CONFIG_KEY in ruleset and isinstance(ruleset[CONFIG_KEY], list):
wlm_config = json.dumps(ruleset[CONFIG_KEY])
elif CONFIG_KEY in ruleset and isinstance(ruleset[CONFIG_KEY], basestring):
if ruleset[CONFIG_KEY].startswith('s3://'):
wlm_config = json.dumps(get_file_contents(ruleset[CONFIG_KEY], region_name))
else:
raise Exception(
"Malformed Configuration for Ruleset %s. '%s' must be a json based WLM configuration or an S3 file location" % (

@cibinmathew cibinmathew linked a pull request Jul 13, 2023 that will close this issue
@cibinmathew cibinmathew changed the title Support local json file in WorkloadManagementScheduler Support local config file in WorkloadManagementScheduler Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant