Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion executorlib/standalone/inputcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os.path
from concurrent.futures import Executor
from typing import Callable, Optional
from warnings import warn


def check_oversubscribe(oversubscribe: bool) -> None:
Expand Down Expand Up @@ -190,7 +191,13 @@ def validate_number_of_cores(
"Block allocation requires a fixed set of computational resources. Neither max_cores nor max_workers are defined."
)
else:
return multiprocessing.cpu_count()
max_workers = multiprocessing.cpu_count()
warn(
"max_workers parameter is not set, set default based on CPU count to: max_workers="
+ str(max_workers),
stacklevel=2,
)
return max_workers


def check_file_exists(file_name: Optional[str]):
Expand Down
Loading