Misleading comment in cdist.cfg.skeleton (jobs=0) #368

Open
opened 2023-11-09 17:35:00 +00:00 by evilham · 0 comments
Collaborator

Actually setting jobs=0 as documented here:

e57cf1e70a/configuration/cdist.cfg.skeleton (L48)

Produces an exception:

  File "/usr/local/lib/python3.11/concurrent/futures/process.py", line 649, in __init__
    raise ValueError("max_workers must be greater than 0")
ValueError: max_workers must be greater than 0

I see two options:

  1. Fix the comment
  2. Fix the code so jobs=0 actually is the same as jobs=1

Which one should it be?

Actually setting `jobs=0` as documented here: https://code.ungleich.ch/ungleich-public/cdist/src/commit/e57cf1e70a3818180b3f54e1e0364ff3b6bbd9cc/configuration/cdist.cfg.skeleton#L48 Produces an exception: ``` File "/usr/local/lib/python3.11/concurrent/futures/process.py", line 649, in __init__ raise ValueError("max_workers must be greater than 0") ValueError: max_workers must be greater than 0 ``` I see two options: 1. Fix the comment 2. Fix the code so `jobs=0` actually is the same as `jobs=1` Which one should it be?
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#368
No description provided.