You should also check your configuration for ProctrackType (man slurm.conf). That should find and kill all processes when your job ends.

Quoting rael <[email protected]>:

You can put a wait at the end of the script and it will finish when sleep finishes.

Ens veiem Felip!

Felip Moll <[email protected]> wrote:

Hello all!,

I have a little question.

Since now, I didn't have the SlurmEpilog script set up. So, if a user
created an script like this:

cat run.sh:
#!/bin/bash
sleep 100 &

And submitted the script with sbatch: "sbatch run.sh" , then the Slurm Job
finishes immediatly, but if you login with ssh to the node
that the job was allocated, the sleep process is still running.

Is this normal? Is there another way appart from SlurmEpilog script to
avoid these cases?

Thank you,
Felip





Reply via email to