amoghrajesh commented on code in PR #49128:
URL: https://github.com/apache/airflow/pull/49128#discussion_r2039767513
##########
task-sdk/src/airflow/sdk/execution_time/supervisor.py:
##########
@@ -650,7 +650,12 @@ def _service_subprocess(self, max_wait_time: float,
raise_on_timeout: bool = Fal
# If the subprocess writes "Hello, World!" to stdout:
# - `socket_handler` reads and processes the message.
# - If EOF is reached, the handler returns False to signal no more
reads are expected.
- need_more = socket_handler(key.fileobj)
+ # - BrokenPipeError should be caught and treated as if the handler
returned false, similar
+ # to EOF case
+ try:
+ need_more = socket_handler(key.fileobj)
+ except BrokenPipeError:
+ need_more = False
Review Comment:
Handled in [catch for dag processor
too](https://github.com/apache/airflow/pull/49128/commits/4a2f28a0d90d597a7d4dec3a6d7ce85e293445c7)
--
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]