Taragolis commented on code in PR #39823:
URL: https://github.com/apache/airflow/pull/39823#discussion_r1614507844


##########
airflow/sensors/base.py:
##########
@@ -322,7 +322,7 @@ def run_duration() -> float:
                 raise AirflowRescheduleException(reschedule_date)
             else:
                 time.sleep(self._get_next_poke_interval(started_at, 
run_duration, poke_count))
-                poke_count += 1
+            poke_count += 1

Review Comment:
   Do you test that this changes are actually works? 
   
   When task rescheduled it would create TaskInstance and initialise new object 
that mean that there is no access to variables from the previous run.



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