diff --git a/shared/workspaces/src/workspaces/services.py b/shared/workspaces/src/workspaces/services.py index 7e4147578079b368ff6f532b4110c16480a17634..09e0eb14d64d4ebe9e09559202dce75c6b8fffcf 100644 --- a/shared/workspaces/src/workspaces/services.py +++ b/shared/workspaces/src/workspaces/services.py @@ -130,7 +130,8 @@ class CapabilityService(CapabilityServiceIF): self.queues[execution.capability.id] = queue # Remove execution record from pool - self.execution_pool.remove(execution) + if execution in self.execution_pool: + self.execution_pool.remove(execution) class CapabilityEngine(CapabilityEngineIF):