parkhojeong commented on code in PR #68234:
URL: https://github.com/apache/airflow/pull/68234#discussion_r3400721999


##########
airflow-core/src/airflow/ui/public/i18n/locales/ko/dashboard.json:
##########
@@ -1,4 +1,6 @@
 {
+  "deferredSlotsNotCounted": "슬롯 계산에서 제외된 연기된 슬롯: {{count}}개",

Review Comment:
   Thanks for the suggestion.
   
   this value is slot-based rather than task-count-based. if one deferred task 
uses pool_slots=2, the displayed value would be 2, not 1. 
   
   On the frontend, the displayed value comes directly from 
`pool.deferred_slots`:
   
   ```ts
   // 
airflow-airflow-core/src/airflow/ui/src/pages/Dashboard/PoolSummary/PoolSummary.tsx:79
   deferredSlotsNotCounted += pool.deferred_slots;
   ```
   
   On the backend, Pool.deferred_slots() is calculated by summing 
TaskInstance.pool_slots, not by counting task instances:
   
   ```ts
   //  airflow-core/src/airflow/models/pool.py:365
   airflow-core/src/airflow/models/pool.py
   select(func.sum(TaskInstance.pool_slots)).where(
       TaskInstance.pool == self.pool,
       TaskInstance.state == TaskInstanceState.DEFERRED,
   )
   ```



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