We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72505e9 commit 2b6ef68Copy full SHA for 2b6ef68
1 file changed
plumpy/process_comms.py
@@ -602,7 +602,10 @@ async def _launch(
602
asyncio.ensure_future(proc.step_until_terminated())
603
return proc.pid
604
605
- await proc.step_until_terminated()
+ try:
606
+ await proc.step_until_terminated()
607
+ finally:
608
+ self._process_cache.pop(proc.pid, None)
609
610
return proc.future().result()
611
@@ -638,7 +641,10 @@ async def _continue(
638
641
639
642
640
643
644
645
646
647
648
649
650
0 commit comments