You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/01/16 02:14:39 UTC

[GitHub] [airflow] houqp commented on a change in pull request #13712: Fix backfill crash on task retry or reschedule

houqp commented on a change in pull request #13712:
URL: https://github.com/apache/airflow/pull/13712#discussion_r558765227



##########
File path: tests/test_utils/mock_executor.py
##########
@@ -69,6 +69,7 @@ def sort_by(item):
             for index in range(min((open_slots, len(sorted_queue)))):
                 (key, (_, _, _, ti)) = sorted_queue[index]
                 self.queued_tasks.pop(key)
+                ti._try_number += 1

Review comment:
       simulate taskinstance.check_and_change_state_before_execution




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org