That information is not available today from the LUA plugin.

If you move away from LUA to a C module that would make all of the  
data more easily available. In that case, you could issue the function  
call to assoc_mgr_fill_in_assoc() and get the data directly (as seen  
in src/slurmctld/job_mgr.c around line 400).

Quoting Lloyd Brown <[email protected]>:

>
> Hi, all,
>
> Hopefully I'm not exposing too much ignorance here.
>
> Is there a way to access accounting info inside a job_submit.lua script?
>  Particularly a users's account list (or default account) as defined
> through sacctmgr would be helpful.  We're trying to manage partition
> access based on the user's account, by modifying the job_desc.partition
> list, but the job_desc.account only appears populated when the user
> specifies an account (eg. "--account=") at submit time, and nil otherwise.
>
> If there's an easier way, I'd like to know that too.  I'm just getting
> started with SLURM, so I'm probably missing a lot.
>
>
> --
> Lloyd Brown
> Systems Administrator
> Fulton Supercomputing Lab
> Brigham Young University
> http://marylou.byu.edu
>

Reply via email to