Skip to content

Commit e9dc9c5

Browse files
committed
Merge pull request #631 from hanke/master
BF: Fix argument order for condor_submit_dag call
2 parents 68a2e63 + 71fb90a commit e9dc9c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nipype/pipeline/plugins/dagman.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ class CondorDAGManPlugin(GraphPluginBase):
3333
given the wrapper command is called with the respective Python
3434
exectuable and the path to the node script as final arguments
3535
- wrapper_args : optional additional arguments to a wrapper command
36-
- dagman_args : arguments to be prepended to the job execution script in the
37-
dagman call
36+
- dagman_args : arguments to be prepended to the arguments of the
37+
condor_submit_dag call
3838
- block : if True the plugin call will block until Condor has finished
3939
prcoessing the entire workflow (default: False)
4040
"""
@@ -152,8 +152,8 @@ def _submit_graph(self, pyfiles, dependencies, nodes):
152152
cmd = CommandLine('condor_submit_dag', environ=os.environ.data,
153153
terminal_output='allatonce')
154154
# needs -update_submit or re-running a workflow will fail
155-
cmd.inputs.args = '-update_submit %s %s' % (dagfilename,
156-
self._dagman_args)
155+
cmd.inputs.args = '%s -update_submit %s' % (self._dagman_args,
156+
dagfilename)
157157
cmd.run()
158158
logger.info('submitted all jobs to Condor DAGMan')
159159
if self._block:

0 commit comments

Comments
 (0)