File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -155,8 +155,15 @@ def __init__(self, config: BaseSchedulerConfig):
155155 self ._context_lock = threading .Lock ()
156156 self .current_user_id : UserID | str | None = None
157157 self .current_mem_cube_id : MemCubeID | str | None = None
158- self .components = init_components ()
159- self .current_mem_cube : BaseMemCube | None = self .components ["naive_mem_cube" ]
158+ self .current_mem_cube : BaseMemCube | None = None
159+ try :
160+ self .components = init_components ()
161+ self .current_mem_cube : BaseMemCube = self .components ["naive_mem_cube" ]
162+ except Exception :
163+ logger .info (
164+ "No environment available to initialize mem cube. Using fallback naive_mem_cube."
165+ )
166+
160167 self ._mem_cubes : dict [str , BaseMemCube ] = {}
161168 self .auth_config_path : str | Path | None = self .config .get ("auth_config_path" , None )
162169 self .auth_config = None
You can’t perform that action at this time.
0 commit comments