We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d1211be + 8e84e62 commit d8c23b1Copy full SHA for d8c23b1
nipype/pipeline/plugins/slurmgraph.py
@@ -135,7 +135,7 @@ def make_job_name(jobnumber, nodeslist):
135
if self._sbatch_args.count('-o ') == 0:
136
stdoutFile = '-o {outFile}'.format(
137
outFile=batchscriptoutfile)
138
- full_line = '{jobNm}=$(sbatch {outFileOption} {errFileOption} {extraSBatchArgs} {dependantIndex} -J {jobNm} {batchscript} | awk \'{{print $4}}\')\n'.format(
+ full_line = '{jobNm}=$(sbatch {outFileOption} {errFileOption} {extraSBatchArgs} {dependantIndex} -J {jobNm} {batchscript} | awk \'/^Submitted/ {{print $4}}\')\n'.format(
139
jobNm=jobname,
140
outFileOption=stdoutFile,
141
errFileOption=stderrFile,
0 commit comments