[slurm-dev] working directory of a completed job

3 views
Skip to first unread message

Husen R

unread,
Jun 21, 2016, 1:58:38 AM6/21/16
to slurm-dev
Hi,

How to get a workdir of a completed job ?
The command "scontrol show job JOBID" is only for running job.

If I use that command for completed job, the following error message appeared..
"slurm_load_jobs error: Invalid job id specified"

thank you in advance
Regards,

Husen

Giovanni Torres

unread,
Jun 21, 2016, 9:50:15 AM6/21/16
to slurm-dev

You could get this from the job completion log:

 

$ scontrol show config | grep JobComp

 

Giovanni

Jason Bacon

unread,
Jun 21, 2016, 10:48:57 AM6/21/16
to slurm-dev


Hello Husen,

See http://slurm.schedmd.com/sacct.html.

If you're using AccountingStorageType=accounting_storage/filetxt, you
can also grep/awk/more the JobComp file.

Jason

On 06/21/16 00:56, Husen R wrote:
> working directory of a completed job
--
All wars are civil wars, because all men are brothers ... Each one owes
infinitely more to the human race than to the particular country in
which he was born.
-- Francois Fenelon

Husen R

unread,
Jun 22, 2016, 9:55:34 PM6/22/16
to slurm-dev
Hello jason,

Thank you for your reply !

I use slurmdbd as my AccountingStorageType...
And finally, I just handle the jobs that are in running/pending state..
I use bash script command  "scontrol show job jobid | grep WorkDir | cut -d "=" -f2" to get WorkDir..

Regards,


Husen

Husen R

unread,
Jun 22, 2016, 10:01:22 PM6/22/16
to slurm-dev
Hello Giovanni,

Thank you for your reply!

the job completion log is not yet configured in my slurm sonfig.
Reply all
Reply to author
Forward
0 new messages