From 4928439ce2d850d11b545071096bbc3aba72d28c Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Mon, 29 Apr 2024 06:32:58 -0600 Subject: [PATCH] fixes --- pyiron_base/jobs/job/generic.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyiron_base/jobs/job/generic.py b/pyiron_base/jobs/job/generic.py index babee8b4e..2fe04e878 100644 --- a/pyiron_base/jobs/job/generic.py +++ b/pyiron_base/jobs/job/generic.py @@ -1557,8 +1557,11 @@ def _get_executor(self, max_workers=None): ): # The Mac firewall might prevent connections based on the network address - especially Github CI return import_class(self._executor_type)( - max_workers=max_workers, hostname_localhost=True + max_cores=max_workers, hostname_localhost=True ) + elif self._executor_type == "pympipool.Executor": + # The pympipool Executor defines max_cores rather than max_workers + return import_class(self._executor_type)(max_cores=max_workers) elif isinstance(self._executor_type, str): return import_class(self._executor_type)(max_workers=max_workers) else: