Skip to content

Commit 598afb3

Browse files
committed
Fix type error in pipeline runner
1 parent e13c468 commit 598afb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MC/bin/o2_dpg_workflow_runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
3737

3838
parser.add_argument('-f','--workflowfile', help='Input workflow file name', required=True)
39-
parser.add_argument('-jmax','--maxjobs', help='Number of maximal parallel tasks.', default=100)
39+
parser.add_argument('-jmax','--maxjobs', type=int, help='Number of maximal parallel tasks.', default=100)
4040
parser.add_argument('-k','--keep-going', action='store_true', help='Keep executing the pipeline as far possibe (not stopping on first failure)')
4141
parser.add_argument('--dry-run', action='store_true', help='Show what you would do.')
4242
parser.add_argument('--visualize-workflow', action='store_true', help='Saves a graph visualization of workflow.')
@@ -1730,5 +1730,5 @@ def speedup_ROOT_Init():
17301730
exit(code)
17311731
actionlogger.info("Running in cgroup")
17321732

1733-
executor=WorkflowExecutor(args.workflowfile,jmax=args.maxjobs,args=args)
1733+
executor=WorkflowExecutor(args.workflowfile,jmax=int(args.maxjobs),args=args)
17341734
exit (executor.execute())

0 commit comments

Comments
 (0)