codeant-ai-for-open-source[bot] commented on code in PR #43523:
URL: https://github.com/apache/superset/pull/43523#discussion_r3862466730


##########
superset/dashboards/api.py:
##########
@@ -1996,7 +1996,9 @@ def build_response(status_code: int) -> WerkzeugResponse:
             )
 
         if cache_payload.should_trigger_task(
-            force, expected_scope=f"dashboard:{dashboard.id}"
+            force,
+            expected_scope=f"dashboard:{dashboard.id}",
+            check_updated_staleness=screenshot_obj.supports_updated_staleness,

Review Comment:
   ✅ **Customized review instruction saved!**
   
   **Instruction:**
   > Atomically claim stale dashboard screenshot entries before enqueueing 
refresh tasks to prevent duplicate Celery tasks.
   
   **Applied to:**
     - `superset/dashboards/api.py`
   
   ---
   💡 *To manage or update this instruction, visit: [CodeAnt AI 
Settings](https://app.codeant.ai/org/settings/learnings)*



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