From d1c5977fc11b1bd25708fa700f0f432f1d8c44d9 Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Mon, 15 Feb 2021 20:41:09 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20FIX:=20retrieve=20future=20excep?= =?UTF-8?q?tion=20on=5Fkilled=20(#206)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The exception set on the future should be retrieved, otherwise it will be caught by the loop's exception handler. --- plumpy/processes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plumpy/processes.py b/plumpy/processes.py index 6bf21f50..783ac5f1 100644 --- a/plumpy/processes.py +++ b/plumpy/processes.py @@ -823,6 +823,7 @@ def on_kill(self, msg: Optional[str]) -> None: def on_killed(self) -> None: """Entered the KILLED state.""" self._killing = None + self.future().exception() # exception must be retrieved self._fire_event(ProcessListener.on_process_killed, self.killed_msg()) def on_terminated(self) -> None: