ashb commented on code in PR #49647:
URL: https://github.com/apache/airflow/pull/49647#discussion_r2057893202


##########
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:
   Maybe it was `-1` in the serialization side and set to default from config 
elsewhere? Or perhaps it was when we hadn't yet worked out what we would do for 
config in the task-sdk dist yet.



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