Skip to content

Commit ceb8537

Browse files
authored
fix(BA-5298): Expose etcd and valkey_stat to webapp plugins in webapp_plugin_ctx (#10318)
1 parent e903f88 commit ceb8537

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

changes/10318.fix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Restore `etcd` and `valkey_stat` access for webapp plugins (Cloud) after DI refactoring by injecting them into the root app context

src/ai/backend/manager/server.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ async def webapp_plugin_ctx(
9292
cors_options = r.system.cors_options
9393
root_app["_db"] = r.infrastructure.db
9494
root_app["_config_provider"] = r.bootstrap.config_provider
95+
root_app["_etcd"] = r.bootstrap.etcd
96+
root_app["_valkey_stat"] = r.infrastructure.valkey.stat
9597
for plugin_name, plugin_instance in plugin_ctx.plugins.items():
9698
if pidx == 0:
9799
log.info("Loading webapp plugin: {0}", plugin_name)

0 commit comments

Comments
 (0)