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:
[email protected]