yuseok89 commented on code in PR #74621:
URL: https://github.com/apache/airflow/pull/74621#discussion_r4255125859
##########
providers/amazon/src/airflow/providers/amazon/aws/triggers/emr.py:
##########
@@ -697,7 +697,7 @@ async def run(self) -> AsyncIterator[TriggerEvent]:
)
raise
except Exception as e:
- yield TriggerEvent({"status": "failure", "message": str(e)})
+ yield TriggerEvent({"status": "failure", "message": str(e),
self.return_key: self.return_value})
Review Comment:
It looks like the actual reason only ends up in the event's `message`. How
about also including `validated_event["message"]` in the exception raised in
`execute_complete`, and trying it with a real failing job?
--
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]