eschutho opened a new pull request, #43840: URL: https://github.com/apache/superset/pull/43840
### SUMMARY `SupersetAppInitializer.init_core_dependencies()` calls `initialize_core_mcp_dependencies()` in **every** process that builds the app — including Celery workers, which never serve MCP. That function imports the MCP service app to register all host tools, which carries a real per-process memory cost. In high-concurrency prefork worker pools, that can OOM the pool on boot. This adds a `CORE_MCP_HOST_TOOLS_ENABLED` config flag (**default `True`**, so no behavior change) and gates the call on it, so a deployment can disable host-tool registration in processes that don't serve MCP (e.g. Celery workers). This follows the "make MCP optional at startup" direction of #38534. ### TESTING INSTRUCTIONS Set `CORE_MCP_HOST_TOOLS_ENABLED = False` in `superset_config.py`; confirm the app starts and the `MCP service app imported - host tools registered` log no longer appears. With the default (`True`), behavior is unchanged and MCP-serving processes work as before. ### ADDITIONAL INFORMATION - [ ] Has associated issue - [x] Required feature flags: n/a (plain config default, `True`) - [ ] Changes UI - [ ] Includes DB Migration - [x] Introduces new feature or API — a new config option Co-Authored-By: Claude Opus 4.8 <[email protected]> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
