KatalKavya96 opened a new pull request, #55857:
URL: https://github.com/apache/airflow/pull/55857

   ### Description
   
   The Pool Slots bar was misleading when pools were configured with 
include_deferred = false.
   Deferred tasks were always shown as a purple chip, making it look like “129 
of 128 slots used” even though those tasks were not consuming slots.
   
   ### This PR fixes the behaviour:
   
   - PoolBar.tsx: skip rendering the deferred_slots chip when include_deferred 
is false.
   
   - PoolSummary.tsx (Dashboard): aggregate deferred_slots only from pools with 
include_deferred = true.
   
   Now, deferred tasks are only shown when they actively consume pool slots.
   
   ### How to reproduce (before fix)
   
   - Create a pool with 128 slots.
   
   - Run a DAG with a deferrable task (DateTimeSensorAsync).
   
   - In Admin → Pools, toggle Include deferred tasks in occupied slots = OFF.
   
   - UI shows ✓ 128 + purple 1 → misleading, looks like 129/128 slots.
   
   - Same issue appears on Dashboard → Pool Summary bar.
   
   ### After fix
   
   - With toggle OFF → only ✓ 128 is shown.
   
   - With toggle ON → ✓ 127 + purple 1 (correct, since deferred counts toward 
occupied).
   
   - Dashboard Pool Summary reflects the same rule (aggregates deferred only 
from pools that opted in).
   
   ### Demo Video
   
   
https://github.com/user-attachments/assets/6226fbe9-b7b9-4ffb-b6a7-28a5f87dd8e4
   
   
   ### Related Issue
   closes: #55734 


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