From 897309ea2f87743a5c4a19af2b513e5a0fcb0a22 Mon Sep 17 00:00:00 2001 From: jan-janssen Date: Sat, 9 Nov 2024 10:29:15 +0100 Subject: [PATCH] Fix interference bug --- executorlib/interactive/shared.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executorlib/interactive/shared.py b/executorlib/interactive/shared.py index 5c2f27b2..aebca15d 100644 --- a/executorlib/interactive/shared.py +++ b/executorlib/interactive/shared.py @@ -514,7 +514,7 @@ def _submit_function_to_separate_process( RaisingThread, dict: thread for communicating with the python process which is executing the function and dictionary containing the future objects and the number of cores they require """ - resource_dict = task_dict.pop("resource_dict") + resource_dict = task_dict.pop("resource_dict").copy() qtask.put(task_dict) qtask.put({"shutdown": True, "wait": True}) if "cores" not in resource_dict.keys() or (