Hi Husen,

Husen R <[email protected]> writes:

> Re: [slurm-dev] Re: How to setup slurm database accounting feature 
>
> Hi Chris,
>
> Thank you for your reply !
>
> I have followed your suggestion. I kill slurmdbd process and drop all tables 
> in
> slurm_acct_db.
> However when I try to run "sudo sacctmgr add cluster hpctesis", the error
> message "Database is busy or waiting for lock from other user." still 
> appeared.
>
> Therefore, I decided to change my clustername to something else and it works !
> I don't know why my first clustername is doesn't work.
>
> in addition, I have a new question. Does sacct command only displays jobs in
> current day ?
> I use sacct to display all jobs, but what I got is jobs in current day only. 
> All
> jobs executed before current day are not appeared.
>
> I know I can use "sacct -c" to display job completion but this command doesn't
> display jobs in RUNNING states as it intends to do so.
>
> so, is there a way to change sacct behavior ?
> so that I can display all jobs (RUNNING, FAILED, CANCELLED,COMPLETED etc) from
> every days available in slurm database at once.

Have a look at the options:

       -S, --starttime

                 Select jobs in any state after the specified
                 time. Default is 00:00:00 of the current day, unless
                 ’-s’ is set then the default is ’now’.  If states are
                 given with the ’-s’ option then only jobs in this state
                 at this time will be returned.


       -E end_time, --endtime=end_time

                 Select jobs in any state before the specified time.  If
                 states are given with the -s option return jobs in this
                 state before this period.

Cheers,

Loris


> Thank you in advance.
>
> Regards,
> Husen
[snip (33 lines)]
-- 
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin         Email [email protected]

Reply via email to