You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/10/09 11:51:58 UTC

[GitHub] [airflow] ashb commented on a change in pull request #11373: Spend less time waiting for LocalTaskJob's subprocss process to finish

ashb commented on a change in pull request #11373:
URL: https://github.com/apache/airflow/pull/11373#discussion_r502374261



##########
File path: airflow/task/task_runner/standard_task_runner.py
##########
@@ -105,9 +105,16 @@ def return_code(self, timeout=0):
         return self._rc
 
     def terminate(self):
+        self.log.debug("self.process: %r", self.process)
         if self.process is None:
             return
 
+        # Reap the child process - it may already be finished
+        self.log.debug("process.is_running(): %r, status(): %r", self.process.is_running(), self.process.status())
+        self._rc = os.waitpid(self.process.pid)
+        #self._rc = self.process.wait(timeout=0)

Review comment:
       oh whoops, don't think I meant to include these changes at all




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org