diff --git a/src/poetry/installation/executor.py b/src/poetry/installation/executor.py index 9cd4ba52cf8..29d499ecae3 100644 --- a/src/poetry/installation/executor.py +++ b/src/poetry/installation/executor.py @@ -226,6 +226,8 @@ def _serialize( wait(tasks) for operation in serial_operations: + if self._shutdown: + break self._execute_operation(operation) except KeyboardInterrupt: