Saddala commented on code in PR #65002:
URL: https://github.com/apache/airflow/pull/65002#discussion_r3104972990
##########
task-sdk/src/airflow/sdk/execution_time/supervisor.py:
##########
@@ -1923,7 +1923,11 @@ def process_log_messages_from_subprocess(
if level := NAME_TO_LEVEL.get(event.pop("level")):
msg = event.pop("event", None)
for target in loggers:
- target.log(level, msg, **event)
+ try:
+ target.log(level, msg, **event)
+ except ValueError:
+ # Log handle already closed; discard remaining output from
killed subprocess.
+ return
Review Comment:
Changed to skip only the failing logger and reraised unexpected ValueErrors
--
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]