This is an automated email from the ASF dual-hosted git repository.

michaelsmolina pushed a commit to branch 5.0
in repository https://gitbox.apache.org/repos/asf/superset.git

commit bf2e014cdec17fc9d2f6a89ecae720cdab589134
Author: Daniel Höxtermann <[email protected]>
AuthorDate: Sat Apr 12 21:15:08 2025 +0200

    fix(thumbnails): ensure consistent cache_key (#33109)
    
    (cherry picked from commit 347c1740998bba767ce05a42a969f1fb295d1479)
---
 superset/dashboards/api.py   | 1 +
 superset/tasks/thumbnails.py | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/superset/dashboards/api.py b/superset/dashboards/api.py
index 764708a604..5d5561d3c2 100644
--- a/superset/dashboards/api.py
+++ b/superset/dashboards/api.py
@@ -1303,6 +1303,7 @@ class DashboardRestApi(BaseSupersetModelRestApi):
                 current_user=current_user,
                 dashboard_id=dashboard.id,
                 force=False,
+                cache_key=cache_key,
             )
             return self.response(
                 202,
diff --git a/superset/tasks/thumbnails.py b/superset/tasks/thumbnails.py
index 8f85972507..5c3e2e412d 100644
--- a/superset/tasks/thumbnails.py
+++ b/superset/tasks/thumbnails.py
@@ -78,6 +78,7 @@ def cache_dashboard_thumbnail(
     force: bool,
     thumb_size: Optional[WindowSize] = None,
     window_size: Optional[WindowSize] = None,
+    cache_key: str | None = None,
 ) -> None:
     # pylint: disable=import-outside-toplevel
     from superset.models.dashboard import Dashboard
@@ -103,6 +104,7 @@ def cache_dashboard_thumbnail(
             window_size=window_size,
             thumb_size=thumb_size,
             force=force,
+            cache_key=cache_key,
         )
 
 

Reply via email to