You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
config_path (optional): Config yaml file path. See [Feathr Config Template](https://github.com/feathr-ai/feathr/blob/main/feathr_project/feathrcli/data/feathr_user_workspace/feathr_config.yaml) for more details. Defaults to "./feathr_config.yaml".
72
74
local_workspace_dir (optional): Set where is the local work space dir. If not set, Feathr will create a temporary folder to store local workspace related files.
73
75
credential (optional): Azure credential to access cloud resources, most likely to be the returned result of DefaultAzureCredential(). If not set, Feathr will initialize DefaultAzureCredential() inside the __init__ function to get credentials.
74
-
project_registry_tag (optional): Adding tags for project in Feathr registry. This might be useful if you want to tag your project as deprecated, or allow certain customizations on project leve. Default is empty
76
+
project_registry_tag (optional): Adding tags for project in Feathr registry. This might be useful if you want to tag your project as deprecated, or allow certain customizations on project level. Default is empty
75
77
use_env_vars (optional): Whether to use environment variables to set up the client. If set to False, the client will not use environment variables to set up the client. Defaults to True.
76
78
"""
77
79
self.logger=logging.getLogger(__name__)
@@ -94,13 +96,19 @@ def __init__(
94
96
self.project_name=self.env_config.get(
95
97
'project_config__project_name')
96
98
97
-
# Redis configs
98
-
self.redis_host=self.env_config.get(
99
-
'online_store__redis__host')
100
-
self.redis_port=self.env_config.get(
101
-
'online_store__redis__port')
102
-
self.redis_ssl_enabled=self.env_config.get(
103
-
'online_store__redis__ssl_enabled')
99
+
# Redis configs. This is optional unless users have configured Redis host.
logger.info(f"Config {key} is not found in the environment variable, configuration file, or the remote key value store.")
65
+
logger.info(f"Config {key} is not found in the environment variable, configuration file, or the remote key value store. Using default value which is {default}.")
# First we have the order (i.e. res1 > res2 > res3 > default)
88
+
# Also previously we use OR for the result, which will yield a bug where say res1=None, res2=False, res3=None. Using OR will result to None result, although res2 actually have value
89
+
forresin [res_env, res_keyvault]:
90
+
ifresisnotNone:
91
+
returnres
92
+
93
+
logger.warning(f"Config {key} is not found in the environment variable or the remote key value store.")
0 commit comments