malthe commented on a change in pull request #22685:
URL: https://github.com/apache/airflow/pull/22685#discussion_r840672356
##########
File path: airflow/dag_processing/processor.py
##########
@@ -231,6 +231,9 @@ def _kill_process(self) -> None:
if self._process.is_alive() and self._process.pid:
self.log.warning("Killing DAGFileProcessorProcess (PID=%d)",
self._process.pid)
os.kill(self._process.pid, signal.SIGKILL)
+
+ # Reap the spawned zombie
+ os.waitpid(self._process.pid, 0)
Review comment:
I don't know if there's anything here that could be racy, but there are
some details here: https://bugs.python.org/issue42558.
--
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]