Bureaucrats, cc_docs_admin, cc_staff
2,879
edits
No edit summary |
No edit summary |
||
Line 62: | Line 62: | ||
<!--T:28--> | <!--T:28--> | ||
You can | You can use [https://slurm.schedmd.com/sbatch.html <code>--signal</code>] to get Slurm to send your script a signal shortly before the run-time expires. | ||
[https://slurm.schedmd.com/sbatch.html <code>--signal</code>], | To take advantage of this, write a shell function which copies your output from <code>$SLURM_TMPDIR</code> back to network storage, | ||
copies your output from <code>$SLURM_TMPDIR</code> back to network storage | and use the <code>trap</code> shell command to associate the function with the signal. | ||
This | This may be useful if your run-time estimate is uncertain, | ||
or if you are chaining together several Slurm jobs to complete a long calculation. | or if you are chaining together several Slurm jobs to complete a long calculation. | ||
However, it will not preserve the contents of <code>$SLURM_TMPDIR</code> in the case of a node failure. | |||
See [https://services.criann.fr/en/services/hpc/cluster-myria/guide/signals-sent-by-slurm/ this page] | See [https://services.criann.fr/en/services/hpc/cluster-myria/guide/signals-sent-by-slurm/ this page] | ||
from le Centre Régional Informatique et d'Applications Numériques de Normandie (CRIANN) | from le Centre Régional Informatique et d'Applications Numériques de Normandie (CRIANN) |