Skip to content

Commit

Permalink
Fix default number of jobs #1213
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo Peng committed Apr 10, 2019
1 parent 532ccc7 commit eab72b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sos/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def get_run_parser(interactive=False, with_workflow=True, desc_only=False):
parser.add_argument('workflow', metavar='WORKFLOW', nargs='?',
help=workflow_spec)
parser.add_argument('-j', type=int, metavar='JOBS',
dest='__max_procs__', default=min(max(os.cpu_count() // 2, 8), 1),
dest='__max_procs__', default=min(max(os.cpu_count() // 2, 1), 8),
help='''Maximum number of worker processes for the execution of steps in
a workflow and substeps in a step (with input option concurrent), default to half of
number of CPUs, or 8, whichever is smaller''')
Expand Down

0 comments on commit eab72b7

Please sign in to comment.