bbovenzi commented on code in PR #73693:
URL: https://github.com/apache/airflow/pull/73693#discussion_r4469159307


##########
airflow-core/src/airflow/api_fastapi/core_api/datamodels/dags.py:
##########
@@ -225,7 +226,18 @@ class DAGDetailsResponse(DAGResponse):
     rerun_with_latest_version: bool | None = None
     owner_links: dict[str, str] | None = None
     is_favorite: bool = False
-    active_runs_count: int = 0
+    active_runs_count: int = Field(
+        default=0, description="Number of currently running runs (backfill 
runs excluded)."
+    )
+    queued_runs_count: int = Field(
+        default=0, description="Number of currently queued runs (backfill runs 
excluded)."
+    )
+    is_at_max_active_runs: bool = Field(
+        description=(
+            "Whether this Dag is currently at its max_active_runs limit, 
counting running and "
+            "queued runs (backfill runs excluded)."
+        )
+    )

Review Comment:
   Let's remove this. The UI doesnt even use `is_at_max_active_runs`, we can 
already derive it.



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