Skip to content

Commit 3793823

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6feb5e4 commit 3793823

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/pytask_parallel/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@hookimpl
1313
def pytask_parse_config(config: dict[str, Any]) -> None:
1414
"""Parse the configuration."""
15-
if config["n_workers"] == "auto": # noqa: PLR2004
15+
if config["n_workers"] == "auto":
1616
config["n_workers"] = max(os.cpu_count() - 1, 1)
1717

1818
if (

src/pytask_parallel/execute.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,10 @@ def pytask_execute_build(session: Session) -> bool | None:
5959
parallel_backend = PARALLEL_BACKENDS[session.config["parallel_backend"]]
6060

6161
with parallel_backend(max_workers=session.config["n_workers"]) as executor:
62-
6362
session.config["_parallel_executor"] = executor
6463
sleeper = _Sleeper()
6564

6665
while session.scheduler.is_active():
67-
6866
try:
6967
newly_collected_reports = []
7068
n_new_tasks = session.config["n_workers"] - len(running_tasks)

0 commit comments

Comments
 (0)