ashb commented on a change in pull request #6870: [AIRFLOW-0578] Check return
code
URL: https://github.com/apache/airflow/pull/6870#discussion_r367626457
##########
File path: airflow/utils/state.py
##########
@@ -122,3 +122,10 @@ def unfinished(cls):
cls.UP_FOR_RETRY,
cls.UP_FOR_RESCHEDULE
]
+
+ @classmethod
+ def unsuccessful(cls):
+ """
+ A list of states indicating that a task completed unsuccessfully.
+ """
+ return [cls.FAILED, cls.UP_FOR_RETRY, cls.UP_FOR_RESCHEDULE]
Review comment:
Past me was right, and this is all good here.
----------------------------------------------------------------
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]
With regards,
Apache Git Services