gopidesupavan commented on code in PR #49647:
URL: https://github.com/apache/airflow/pull/49647#discussion_r2059906744
##########
airflow-core/tests/unit/serialization/test_dag_serialization.py:
##########
@@ -685,10 +685,14 @@ def validate_deserialized_dag(self, serialized_dag: DAG,
dag: DAG):
for field in fields_to_check:
actual = getattr(serialized_dag, field)
expected = getattr(dag, field, None)
+
+ if field == "max_consecutive_failed_dag_runs":
+ # TaskSDK sets -1 default to max_consecutive_failed_dag_runs
+ assert actual in [expected, 0], f"{dag.dag_id}.{field} does
not match"
Review Comment:
Yes the default value zero being set here
https://github.com/apache/airflow/blob/main/airflow-core/src/airflow/models/dag.py#L438.
so should we align all with zero?
--
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]