Saddala commented on code in PR #65002:
URL: https://github.com/apache/airflow/pull/65002#discussion_r3104972060


##########
airflow-core/src/airflow/dag_processing/manager.py:
##########
@@ -968,6 +968,15 @@ def remove_orphaned_file_stats(self, present: 
set[DagFileInfo]):
         for file in stats_to_remove:
             del self._file_stats[file]
 
+    def _deregister_processor_sockets(self, processor: 
DagFileProcessorProcess) -> None:
+        """Unregister and close all sockets for a killed processor before 
closing its log handle."""
+        for sock in list(processor._open_sockets.keys()):
+            with contextlib.suppress(KeyError):
+                self.selector.unregister(sock)
+            with contextlib.suppress(Exception):

Review Comment:
   Narrowed to OSError, ValueError



-- 
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]

Reply via email to