potiuk commented on a change in pull request #22685:
URL: https://github.com/apache/airflow/pull/22685#discussion_r840752163
##########
File path: airflow/dag_processing/manager.py
##########
@@ -1073,6 +1074,14 @@ def _kill_timed_out_processors(self):
Stats.incr('dag_file_processor_timeouts')
processor.kill()
+ # Clean up processor references
+ self.waitables.pop(processor.waitable_handle)
+ processors_to_remove.append(file_path)
+
+ # Clean up `self._processors` after iterating over it
+ for proc in processors_to_remove:
+ self._processors.pop(proc)
Review comment:
Why ?
--
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]