victorphoenix3 commented on a change in pull request #21423:
URL: https://github.com/apache/airflow/pull/21423#discussion_r802326999
##########
File path: airflow/providers/amazon/aws/hooks/emr.py
##########
@@ -114,6 +114,12 @@ class EmrContainerHook(AwsBaseHook):
"CANCEL_PENDING",
)
SUCCESS_STATES = ("COMPLETED",)
+ TERMINAL_STATES = (
+ "COMPLETED",
+ "FAILED",
+ "CANCELLED",
+ "CANCEL_PENDING",
Review comment:
"CANCEL_PENDING" is being treated as a [failure
state](https://github.com/apache/airflow/blob/main/airflow/providers/amazon/aws/hooks/emr.py#L111-L115)
for the EMR container sensor, which is why I included it as a terminal state.
Should it be removed?
--
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]