Skip to content

Commit

Permalink
echo command for ease of use
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Feb 17, 2021
1 parent 223c2dd commit 4e89e2f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion coupledmodeldriver/job_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,11 @@ def __str__(self) -> str:

if self.platform != Platform.LOCAL:
# slurm queue output https://slurm.schedmd.com/squeue.html
lines.append('squeue -u $USER -o "%.8F %.21j %.4C %.4D %.31E %.7a %.9P %.20V %.20S %.20e"')
squeue_command = 'squeue -u $USER -o "%.8F %.21j %.4C %.4D %.31E %.7a %.9P %.20V %.20S %.20e"'
lines.extend([
f'echo {squeue_command}',
squeue_command,
])

return '\n'.join(lines)

Expand Down

0 comments on commit 4e89e2f

Please sign in to comment.