ashb commented on code in PR #52651:
URL: https://github.com/apache/airflow/pull/52651#discussion_r2334178600
##########
airflow-core/src/airflow/jobs/triggerer_job_runner.py:
##########
@@ -774,7 +763,10 @@ def send(self, msg: ToTriggerSupervisor) ->
ToTriggerRunner | None:
return async_to_sync(self.asend)(msg)
async def _aread_frame(self):
- len_bytes = await self._async_reader.readexactly(4)
+ try:
+ len_bytes = await self._async_reader.readexactly(4)
+ except ConnectionResetError:
+ asyncio.current_task().cancel("Supervisor closed")
Review Comment:
Without this we got some "BrokenPipeError" being thrown due to logging
change, so this cleans up that "noise"
--
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]