We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b249490 commit c2064eaCopy full SHA for c2064ea
1 file changed
src/dremioai/servers/mcp.py
@@ -565,7 +565,11 @@ async def _settings_refresh_loop():
565
s = settings.instance()
566
if s is None:
567
continue
568
- settings.reload_mutable_settings_if_changed()
+ # Config reload is typically a small local file read, so blocking the
569
+ # event loop here would be an edge case. We still offload it to a
570
+ # worker thread to keep the refresh loop non-blocking if config I/O
571
+ # ever becomes unexpectedly slow.
572
+ await asyncio.to_thread(settings.reload_mutable_settings_if_changed)
573
current_settings = settings.instance()
574
level_name = current_settings.get("log_level")
575
logger_names = current_settings.loggers or []
0 commit comments