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.
Hello,
Have you tried using AccountingStoreFlags=job_script as described in [ https://slurm.schedmd.com/slurm.conf.html#OPT_AccountingStoreFlags | 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 | 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 | 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.
Hi again,
Oh, sorry! Yes, I configured slurm.conf with “AccountingStoreFlags=job_comment,job_env,job_extra,job_script” but I could test… Now, I have tested and I have got my submit script after job has finished.
Thanks a lot!!!
-- [cid:image001.jpg@01DBE047.F4881360]http://www.uab.cat/ Daniel Ruiz Molina Tècnic Mitjà Informàtic
Arquitectura de Computadors i Sistemes Operatius Escola d'Enginyeria
Edifici Q - Despatx QC/3052 - Carrer de les Sitges Campus de la UAB · 08193 Bellaterra (Cerdanyola del Vallès) · Barcelona · Spain
+34 93 581 35 44 www.uab.cathttp://www.uab.cat/ Daniel Ruiz at UABhttps://tinyurl.com/yd95zb8j
[cid:image002.jpg@01DBE047.F4881360]<www.linkedin.com/in/daniel-ruiz-molina-50a83b27> Aquest missatge s'adreça exclusivament a la persona destinatària i pot contenir informació privada o confidencial. Si l'heu rebut per error, comuniqueu-nos-ho i destruïu-lo, i tingueu present que no teniu autorització per fer-ne cap ús. Abans d'imprimir aquest missatge penseu en el medi ambient.
De: Guillaume COCHARD guillaume.cochard@cc.in2p3.fr Enviat: dimecres, 18 de juny de 2025 10:45 Per a: Gestió Servidors sysadmin.caos@uab.cat A/c: slurm-users@lists.schedmd.com Tema: Re: [slurm-users] Re: Job information if job is completed
No soleu rebre correu electrònic de guillaume.cochard@cc.in2p3.frmailto:guillaume.cochard@cc.in2p3.fr. descobriu per què aquest fet és importanthttps://aka.ms/LearnAboutSenderIdentification 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.commailto:slurm-users@lists.schedmd.com> À: slurm-users@lists.schedmd.commailto: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.commailto:slurm-users@lists.schedmd.com To unsubscribe send an email to slurm-users-leave@lists.schedmd.commailto:slurm-users-leave@lists.schedmd.com
Hi @all,
we use another solution for our finished jobs, everything goes additionally to Elastic (incl. jobscript), see JobCompLoc and JobCompType. We don't store the jobscripts in our SLURM Accounting DB.
Refer to https://slurm.schedmd.com/elasticsearch.html for more information.
Best Regards, Carsten