uranusjr commented on code in PR #64089:
URL: https://github.com/apache/airflow/pull/64089#discussion_r2973118849


##########
airflow-core/src/airflow/api_fastapi/core_api/datamodels/backfills.py:
##########
@@ -54,6 +54,8 @@ class BackfillResponse(BaseModel):
     completed_at: datetime | None
     updated_at: datetime
     dag_display_name: str = Field(validation_alias=AliasPath("dag_model", 
"dag_display_name"))
+    num_runs: int = 0
+    dag_run_state_counts: dict[str, int] = {}

Review Comment:
   I guess it depends on whether other information (on dag runs) would be 
potentially useful. Attaching them on the same model is better if it’s just the 
count and state. (Not necessarily enriching BackfillResponse directly though; 
arguably this should be a different Pydantic model.)



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