diff --git a/parsl/executors/workqueue/executor.py b/parsl/executors/workqueue/executor.py index 5652ff0e6e..23969803a1 100644 --- a/parsl/executors/workqueue/executor.py +++ b/parsl/executors/workqueue/executor.py @@ -688,7 +688,7 @@ def scale_in(self, count: int) -> List[str]: logger.debug("Number of jobs in blocks_to_job_id map: %s", len(self.blocks_to_job_id)) # Obtain list of blocks to kill - to_kill = list(self.blocks_to_job_id.keys())[:count] + to_kill = list(self._status.keys())[:count] logger.debug("List of blocks to scale in: %s", to_kill) for block_id in to_kill: