ReadytoRocc commented on a change in pull request #19194:
URL: https://github.com/apache/airflow/pull/19194#discussion_r735751606
##########
File path: tests/models/test_taskinstance.py
##########
@@ -537,10 +525,10 @@ def reschedule():
session.commit()
ti.task = task
- if state in [State.FAILED, State.UP_FOR_RETRY]:
+ if func.__name__ == "_failure":
Review comment:
Thanks @uranusjr, `if func is type(self)._failure:` worked. Adding it
now.
--
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]