Skip to content

Commit

Permalink
fix: format job identifier as a string
Browse files Browse the repository at this point in the history
  • Loading branch information
mortonne committed Jun 3, 2022
1 parent 2052e2a commit 0c6a695
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/launch
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ def launch_slurm(
qsub_file.write(f'#SBATCH -p {queue_name}\n')
qsub_file.write(f'#SBATCH -t {runtime}\n')

if type(hold) is str:
qsub_file.write(f'#SBATCH -d afterok:{hold:d}\n')
if hold is not None:
qsub_file.write(f'#SBATCH -d afterok:{hold}\n')

account = account if account is not None else nodes['account']
if account is not None:
Expand Down

0 comments on commit 0c6a695

Please sign in to comment.