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/11/18 01:54:02 UTC

[GitHub] [airflow] Swalloow commented on a change in pull request #19579: Add state details to EMR container failure reason

Swalloow commented on a change in pull request #19579:
URL: https://github.com/apache/airflow/pull/19579#discussion_r751821849



##########
File path: airflow/providers/amazon/aws/hooks/emr_containers.py
##########
@@ -123,7 +123,9 @@ def get_job_failure_reason(self, job_id: str) -> Optional[str]:
                 virtualClusterId=self.virtual_cluster_id,
                 id=job_id,
             )
-            reason = response['jobRun']['failureReason']
+            failure_reason = response['jobRun']['failureReason']
+            state_details = response["jobRun"]["stateDetails"]
+            reason = f"{failure_reason} - {state_details}"

Review comment:
       It is backwards compatible.
   Thanks, I added `stateDetails` to return_value.




-- 
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: commits-unsubscribe@airflow.apache.org

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