Skip to content

Commit 2a2da80

Browse files
committed
Merge pull request #508 from hanke/fix/condor_dagman
Close gh-507
2 parents 52ef768 + d0c47f4 commit 2a2da80

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

nipype/pipeline/plugins/dagman.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import os
55
import sys
6+
import uuid
67

78
from .base import (GraphPluginBase, logger)
89

@@ -15,9 +16,11 @@ class CondorDAGManPlugin(GraphPluginBase):
1516
The plugin_args input to run can be used to control the DAGMan execution.
1617
Currently supported options are:
1718
18-
- template : submit spec template to use for job submission. The template
19-
all generated submit specs are appended to this template. This
20-
can be a str or a filename.
19+
- template : submit spec template for individual jobs in a DAG. All
20+
generated submit spec components (e.g. executable name and
21+
arguments) are appended to this template. This can be a str or
22+
a filename. In the latter case the file content is used as a
23+
template.
2124
- submit_specs : additional submit specs that are appended to the generated
2225
submit specs to allow for overriding or extending the defaults.
2326
This can be a str or a filename.
@@ -53,7 +56,7 @@ def _submit_graph(self, pyfiles, dependencies, nodes):
5356
# location of all scripts, place dagman output in here too
5457
batch_dir, _ = os.path.split(pyfiles[0])
5558
# DAG description filename
56-
dagfilename = os.path.join(batch_dir, 'workflow.dag')
59+
dagfilename = os.path.join(batch_dir, 'workflow-%s.dag' % uuid.uuid4())
5760
with open(dagfilename, 'wt') as dagfileptr:
5861
# loop over all scripts, create submit files, and define them
5962
# as jobs in the DAG

0 commit comments

Comments
 (0)