durgaprasadml commented on issue #67884:
URL: https://github.com/apache/airflow/issues/67884#issuecomment-4600546208

   I investigated this regression and prepared a fix that addresses both the 
duplicate stream refreshes and the excessive render churn occurring after 
mutation actions.
   
   The issue appears to come from two compounding factors inside 
useGridTISummaries.ts:
   
   1. Multiple watched query invalidations can trigger overlapping TI summary 
stream refreshes.
   2. Each NDJSON line currently performs its own setSummariesByRunId(...) 
state update, which amplifies render pressure significantly on already 
expensive grid/TI surfaces.
   
   The fix I implemented includes:
   
   - deterministic refresh coalescing for invalidation-driven stream refreshes
   - active stream deduplication / stale stream abort handling
   - NDJSON chunk buffering with batched React state updates
   
   This preserves the stale badge correctness introduced in #67212 while 
preventing the UI freeze caused by rapid repeated renders.
   
   I also added tests covering:
   - refresh coalescing
   - stale stream abort handling
   - NDJSON batching behavior
   - prevention of duplicate refresh scheduling
   
   Opening PR shortly.


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

Reply via email to