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 c67777a + 4371b99 commit 7040c00Copy full SHA for 7040c00
dpgen/dispatcher/Slurm.py
@@ -81,8 +81,9 @@ def sub_script_head(self, res):
81
ret += "#SBATCH -t %s\n" % res['time_limit']
82
if res['mem_limit'] > 0 :
83
ret += "#SBATCH --mem=%dG \n" % res['mem_limit']
84
- if len(res['job_name']) > 0:
85
- ret += '#SBATCH --job-name=%s\n' % res['job_name']
+ if 'job_name' in res:
+ if len(res['job_name']) > 0:
86
+ ret += '#SBATCH --job-name=%s\n' % res['job_name']
87
if len(res['account']) > 0 :
88
ret += "#SBATCH --account=%s \n" % res['account']
89
if len(res['partition']) > 0 :
0 commit comments