GitHub user dosubot[bot] added a comment to the discussion: When Gunicorn workers are set to more than 1, some workers will fail to load sqlalchemy.dialects:doris
<!-- Answer --> Your reasoning is correct: if pydoris is lazily loaded and not imported before Gunicorn forks worker processes, the dialect plugin may not be registered in the child processes, causing the error you see with multiple workers. The most reliable solution is to force the import of pydoris before Gunicorn forks any workers. You can do this by adding `import pydoris` at the very top of your `superset/app.py` file (right after the existing imports). This ensures the Doris dialect is registered in the master process and inherited by all workers, regardless of your deployment method (Docker or not). No changes to Gunicorn or entrypoint scripts are needed—just the import statement. After making this change, restart Superset so all Gunicorn workers start with the correct environment. This should resolve the plugin loading error for all workers. If you still see issues, double-check your Doris SQLAlchemy URI to ensure the catalog is specified as required (e.g., `doris://user:pass@host:port/internal.schema`) [source](https://github.com/apache/superset/issues/34072). Let me know if you need help with the exact code change or if the problem persists after this! <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/5f70f9f8-3bf3-4e69-ad67-1fd550f37608?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/5f70f9f8-3bf3-4e69-ad67-1fd550f37608?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/5f70f9f8-3bf3-4e69-ad67-1fd550f37608?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/5f70f9f8-3bf3-4e69-ad67-1fd550f37608?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/5f70f9f8-3bf3-4e69-ad67-1fd550f37608?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/5f70f9f8-3bf3-4e69-ad67-1fd550f37608?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/5f70f9f8-3bf3-4e69-ad67-1fd550f37608?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)& nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/35299) GitHub link: https://github.com/apache/superset/discussions/35299#discussioncomment-14518574 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
