dabla commented on code in PR #69324:
URL: https://github.com/apache/airflow/pull/69324#discussion_r3521787907


##########
airflow-core/src/airflow/dag_processing/manager.py:
##########
@@ -1312,7 +1315,10 @@ def _collect_results(self):
 
         for file in finished:
             processor = self._processors.pop(file)
-            processor.logger_filehandle.close()
+            try:
+                processor.logger_filehandle.close()
+            except OSError:
+                self.log.warning("Failed to close log file handle for %s", 
file)

Review Comment:
   Good suggestion will apply it.



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