Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Apr 29, 2024
1 parent 66cacda commit 4928439
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyiron_base/jobs/job/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4928439

Please sign in to comment.