diff --git a/flamenco_worker/runner.py b/flamenco_worker/runner.py index 15e0f99152819f8bc6518beb09f339972a7e81c7..d6113fec995c9d7ae2f55a44eec45138b27f6995 100644 --- a/flamenco_worker/runner.py +++ b/flamenco_worker/runner.py @@ -410,6 +410,10 @@ class AbstractSubprocessCommand(AbstractCommand): # The process is already stopped, so killing is impossible. That's ok. self._log.debug("The process was already stopped, aborting is impossible. That's ok.") return + except AttributeError: + # This can happen in some race conditions, it's fine. + self._log.debug("The process was not yet started, aborting is impossible. That's ok.") + return retval = await self.proc.wait() self._log.info('The process aborted with status code %s', retval)