Embedded dashboards: Celery tasks keep running after close (GAQ) #35720
Unanswered
PiXOT97
asked this question in
Q&A / Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using async query execution (Celery + Redis) in Apache Superset 4.1.2, each chart in a dashboard is executed as a separate Celery task.
In my setup, I have embedded dashboards with 30+ charts, each generating heavy OLAP queries.
If a user closes the embed or navigates to another dashboard before all charts finish loading, Superset continues executing all those Celery tasks in Redis — even though those charts are no longer visible or needed.
This results in unnecessary load on both the Celery workers and the database, since the tasks and queries keep running to completion in the background.
Question
Is there any supported way to cancel or revoke those Celery / Redis tasks when the embedded dashboard is closed or reloaded?
Has this been fixed or improved in newer Superset versions after 4.1.2?
If not, is there any plan to add a configuration or API, such as:
to automatically cancel background queries when the user leaves the page?
Environment
Beta Was this translation helpful? Give feedback.
All reactions