7b17eea7eec9c96bc427005b1e6f1fd7d53edf69,polyaxon/scheduler/spawners/templates/env_vars.py,,get_job_env_vars,#Any#Any#Any#Any#Any#Any#,43

Before Change


                     logs_path=None,
                     outputs_refs_jobs=None,
                     outputs_refs_experiments=None):
    env_vars = [
        get_env_var(name=API_KEY_NAME, value=get_settings_api_url()),
        get_env_var(name=constants.CONFIG_MAP_RUN_OUTPUTS_PATH_KEY_NAME, value=outputs_path),
        get_env_var(name=constants.CONFIG_MAP_RUN_DATA_PATHS_KEY_NAME, value=data_paths),
        get_from_app_secret("POLYAXON_INTERNAL_SECRET_TOKEN", "POLYAXON_INTERNAL_SECRET_TOKEN"),
    ]
    if log_level:
        env_vars.append(
            get_env_var(name=constants.CONFIG_MAP_LOG_LEVEL_KEY_NAME, value=log_level))

After Change


                     logs_path=None,
                     outputs_refs_jobs=None,
                     outputs_refs_experiments=None):
    env_vars = [
        get_env_var(name=API_HTTP_URL, value=get_settings_http_api_url()),
        get_env_var(name=API_WS_HOST, value=get_settings_ws_api_url()),
        get_env_var(name=constants.CONFIG_MAP_IN_CLUSTER, value=True),
        get_env_var(name=constants.CONFIG_MAP_API_VERSION, value=VERSION_V1),
        get_env_var(name=constants.CONFIG_MAP_INTERNAL_HEADER,
                    value=settings.HEADERS_INTERNAL.replace("_", "-")),
        get_env_var(name=settings.CONFIG_MAP_INTERNAL_HEADER_SERVICE,
                    value=settings.INTERNAL_SERVICES.TRACKER),
        get_env_var(name=constants.CONFIG_MAP_RUN_OUTPUTS_PATH_KEY_NAME, value=outputs_path),
        get_env_var(name=constants.CONFIG_MAP_RUN_DATA_PATHS_KEY_NAME, value=data_paths),
        get_from_secret("POLYAXON_INTERNAL_SECRET_TOKEN", "POLYAXON_INTERNAL_SECRET_TOKEN"),
    ]
    if log_level:
        env_vars.append(
            get_env_var(name=constants.CONFIG_MAP_LOG_LEVEL_KEY_NAME, value=log_level))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: polyaxon/polyaxon
Commit Name: 7b17eea7eec9c96bc427005b1e6f1fd7d53edf69
Time: 2018-09-19
Author: mouradmourafiq@gmail.com
File Name: polyaxon/scheduler/spawners/templates/env_vars.py
Class Name:
Method Name: get_job_env_vars


Project Name: polyaxon/polyaxon
Commit Name: 0a055d8a7894b79fc598cc333eb4b2a1347b5a8d
Time: 2018-06-03
Author: mouradmourafiq@gmail.com
File Name: polyaxon/scheduler/spawners/dockerizer_spawner.py
Class Name: DockerizerSpawner
Method Name: get_env_vars


Project Name: polyaxon/polyaxon
Commit Name: f3239b9eb1de6ee8953cf6cb733773b31a2c8269
Time: 2019-02-10
Author: mouradmourafiq@gmail.com
File Name: polyaxon/scheduler/spawners/dockerizer_spawner.py
Class Name: DockerizerSpawner
Method Name: get_env_vars