[slurm-users] Epilog script does not execute

Hermann Schwärzler hermann.schwaerzler at uibk.ac.at
Mon Jul 18 11:51:51 UTC 2022


Hi Purvesh,

which version of Slurm are you using?
In which OS-environment?

The epilog script is run *on every node when a user's job completes*.

So:
* Do you have copied your epilog script to all of your nodes?
* Did you look at /tmp/ on nodes a job ran recently to see if there is 
any output of your script (you might have to do a "find /tmp -name 
testfile" as root)?

Do you want to run your script upon job completion *on the "master" 
node*? If yes, use

EpilogSlurmctld=/var/slurm/etc/epilog-test

in your slurm.conf.

Regards,
Hermann


On 7/18/22 12:29 PM, Purvesh Parmar wrote:
> Hi,
> 
> I have written a shell script with the name epilog-test. I have 
> mentioned in the slurm.conf file :
> Epilog=/var/slurm/etc/epilog-test
> The same slurm.conf file has been copied on all the nodes.
> 
> My epilog-test is
> 
> #! /bin/bash
> echo "epilog test" > /tmp/testfile
> 
> Chmod +x epilog-test
> 
> I have restarted slurmctld on master and slurmd on the nodes. Then I 
> have tested jobs, but nothing executes after the job is over.
> 
> Please help
> 
> Regards,
> Purvesh
> 
> On Sat, 16 Jul 2022 at 12:37, Purvesh Parmar <purveshp0507 at gmail.com 
> <mailto:purveshp0507 at gmail.com>> wrote:
> 
>     Hi,
> 
>     I have written a shell script with name epilog-test. I have
>     mentioned in the slurm.conf file :
>     Epilog=/var/slurm/etc/epilog-test
>     The same slurm.conf file has been copied on all the nodes.
> 
>     My epilog-test is
> 
>     #! /bin/bash
>     echo "epilog test" > /tmp/testfile
> 
>     Chmod +x epilog-test
> 
>     I have restarted slurmctld on master and slurmd on the nodes. Then I
>     have tested jobs, but nothing executes after job is over.
> 
>     Please help
> 
>     Regards,
>     Purvesh
> 



More information about the slurm-users mailing list