Skip to content

Support local config file in WorkloadManagementScheduler #694

Open
@cibinmathew

Description

@cibinmathew

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" % (

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions