2.3. Epilogue/Prologue

Slurm provides the ability to script some actions immediately before the job starts and immediately after it ends (even if it is removed). The epilogue is a good place to put functionality needed to clean up after a job and to end any job-related processes that are still running. For instance, you could include functionality to clean up the working/scratch area for a job if it is deleted before its completion. Fluent provides a way to get rid of job-related processes in the form of a shell script in the work directory (cleanup-fluent-<host-pid>). It could be useful to have the epilogue call this script to ensure all errant processes are cleaned up after a job completes.