diff --git a/parsl/executors/globus_compute.py b/parsl/executors/globus_compute.py index ad1a8ec2cd..d2078dfb18 100644 --- a/parsl/executors/globus_compute.py +++ b/parsl/executors/globus_compute.py @@ -116,15 +116,14 @@ def submit(self, func: Callable, resource_specification: Dict[str, Any], *args: else: user_endpoint_config = self.user_endpoint_config - orig_spec = self.executor.resource_specification - orig_uep_cof = self.executor.user_endpoint_config try: self.executor.resource_specification = res_spec self.executor.user_endpoint_config = user_endpoint_config return self.executor.submit(func, *args, **kwargs) finally: - self.executor.resource_specification = orig_spec - self.executor.user_endpoint_config = orig_uep_cof + # Reset executor state to defaults set at configuration time + self.executor.resource_specification = self.resource_specification + self.executor.user_endpoint_config = self.user_endpoint_config def shutdown(self): """Clean-up the resources associated with the Executor.