dstandish commented on code in PR #39336:
URL: https://github.com/apache/airflow/pull/39336#discussion_r1594716629


##########
airflow/models/dagrun.py:
##########
@@ -1567,7 +1568,16 @@ def schedule_tis(
                         TI.run_id == self.run_id,
                         tuple_in_condition((TI.task_id, TI.map_index), 
schedulable_ti_ids_chunk),
                     )
-                    .values(state=TaskInstanceState.SCHEDULED)
+                    .values(
+                        state=TaskInstanceState.SCHEDULED,
+                        try_number=case(
+                            (
+                                or_(TI.state.is_(None), TI.state != 
TaskInstanceState.UP_FOR_RESCHEDULE),

Review Comment:
   oh i see i think you're saying same as 
https://github.com/apache/airflow/pull/39336#discussion_r1594675865 not same as 
the comment immediately above.  yeah this is needed because sql comparisons 
with null



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