Hello,

Have you tried using AccountingStoreFlags=job_script as described in https://slurm.schedmd.com/slurm.conf.html#OPT_AccountingStoreFlags ? The user's script should then be accessible through sacct -B (cf. https://slurm.schedmd.com/sacct.html#OPT_batch-script ) as pointed out by Eric in his response.

Cheers,
Guillaume


De: "Gestió Servidors via slurm-users" <slurm-users@lists.schedmd.com>
À: slurm-users@lists.schedmd.com
Envoyé: Mercredi 18 Juin 2025 10:22:15
Objet: [slurm-users] Re: Job information if job is completed

Hello,

 

So if there is no way to get all information from a finished job (specially submit script, not command line, but all content from submit script, like a copy of it), maybe a solution would be run a “prolog” script in each job to run a “cp” from the submit script. However, how could I copy the submit scrip from the prolog script? Because from the prolog script, I can access to some SLURM variables (https://slurm.schedmd.com/prolog_epilog.html) but I don’t know how to know what the script is and run a simple “cp” to a destination folder.

 

Thanks.

 



--
slurm-users mailing list -- slurm-users@lists.schedmd.com
To unsubscribe send an email to slurm-users-leave@lists.schedmd.com