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


##########
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:
   @ashb @amoghrajesh @kaxil -> just checking if that was intentional change to 
change it it to -1 ? `max_consecutive_runs` is experimental so should not 
matter, just checking



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