joserocha opened a new issue, #38564:
URL: https://github.com/apache/superset/issues/38564

   ### Bug description
   
   I deployed a new Superset application in my Kubernetes dev environment, but 
when the pods related to async throw the error below:
   
   `Starting Celery worker...
   Loaded your LOCAL configuration at [/app/pythonpath/superset_config.py]
   2026-03-10 17:59:22,392:INFO:alembic.runtime.migration:Context impl 
PostgresqlImpl.
   2026-03-10 17:59:22,393:INFO:alembic.runtime.migration:Will assume 
transactional DDL.
   2026-03-10 17:59:23,367:INFO:superset.app:Syncing configuration to 
database...
   2026-03-10 17:59:23,395:INFO:superset.app:Configuration sync to database 
completed successfully
   Traceback (most recent call last):
     File "/app/.venv/bin/celery", line 10, in <module>
       sys.exit(main())
     File "/app/.venv/lib/python3.10/site-packages/celery/__main__.py", line 
15, in main
       sys.exit(_main())
     File "/app/.venv/lib/python3.10/site-packages/celery/bin/celery.py", line 
231, in main
       return celery(auto_envvar_prefix="CELERY")
     File "/app/.venv/lib/python3.10/site-packages/click/core.py", line 1442, 
in __call__
       return self.main(*args, **kwargs)
     File "/app/.venv/lib/python3.10/site-packages/click/core.py", line 1363, 
in main
       rv = self.invoke(ctx)
     File "/app/.venv/lib/python3.10/site-packages/click/core.py", line 1830, 
in invoke
       return _process_result(sub_ctx.command.invoke(sub_ctx))
     File "/app/.venv/lib/python3.10/site-packages/click/core.py", line 1226, 
in invoke
       return ctx.invoke(self.callback, **ctx.params)
     File "/app/.venv/lib/python3.10/site-packages/click/core.py", line 794, in 
invoke
       return callback(*args, **kwargs)
     File "/app/.venv/lib/python3.10/site-packages/click/decorators.py", line 
34, in new_func
       return f(get_current_context(), *args, **kwargs)
     File "/app/.venv/lib/python3.10/site-packages/celery/bin/base.py", line 
135, in caller
       return f(ctx, *args, **kwargs)
     File "/app/.venv/lib/python3.10/site-packages/celery/bin/worker.py", line 
348, in worker
       worker = app.Worker(
     File "/app/.venv/lib/python3.10/site-packages/celery/worker/worker.py", 
line 94, in __init__
       self.app.loader.init_worker()
     File "/app/.venv/lib/python3.10/site-packages/celery/loaders/base.py", 
line 110, in init_worker
       self.import_default_modules()
     File "/app/.venv/lib/python3.10/site-packages/celery/loaders/base.py", 
line 105, in import_default_modules
       return [self.import_task_module(m) for m in self.default_modules]
     File "/app/.venv/lib/python3.10/site-packages/celery/loaders/base.py", 
line 105, in <listcomp>
       return [self.import_task_module(m) for m in self.default_modules]
     File "/app/.venv/lib/python3.10/site-packages/celery/loaders/base.py", 
line 85, in import_task_module
       return self.import_from_cwd(module)
     File "/app/.venv/lib/python3.10/site-packages/celery/loaders/base.py", 
line 91, in import_from_cwd
       return import_from_cwd(
     File "/app/.venv/lib/python3.10/site-packages/celery/utils/imports.py", 
line 109, in import_from_cwd
       return imp(module, package=package)
     File "/app/.venv/lib/python3.10/site-packages/celery/loaders/base.py", 
line 88, in import_module
       return importlib.import_module(module, package=package)
     File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in 
import_module
       return _bootstrap._gcd_import(name[level:], package, level)
     File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
     File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
     File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
     File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
     File "<frozen importlib._bootstrap_external>", line 883, in exec_module
     File "<frozen importlib._bootstrap>", line 241, in 
_call_with_frames_removed
     File "/app/superset/tasks/async_queries.py", line 49, in <module>
       query_timeout = current_app.config[
     File "/app/.venv/lib/python3.10/site-packages/werkzeug/local.py", line 
318, in __get__
       obj = instance._get_current_object()
     File "/app/.venv/lib/python3.10/site-packages/werkzeug/local.py", line 
519, in _get_current_object
       raise RuntimeError(unbound_message) from None
   RuntimeError: Working outside of application context.
   
   This typically means that you attempted to use functionality that needed
   the current application. To solve this, set up an application context
   with app.app_context(). See the documentation for more information.` 
   
   I'm using the Superset 6.0.1 rc1.
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [ ] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
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]

Reply via email to