fmihpc / vlasiator

Vlasiator - ten letters you can count on
https://www.helsinki.fi/en/researchgroups/vlasiator
Other
48 stars 39 forks source link

Add SIGTERM signal handler, for slurm preemption. #1059

Open ursg opened 1 week ago

ursg commented 1 week ago

When preempting, slurm sends a SIGTERM signal and gives the process two minutes time to gracefully terminate itself. Writing a restart immediately might work in that situation.

If the university IT department actually wants to take slurm preemption into use, we better be prepared. :)

Tested (by hand) with a small testpackage job.