That's about what I figured. The trouble is that the list of users/accounts/whatever that we're using to give access, changes from time to time. If I use a lua script, I can be lazy and hard-code the conditions into the script. I can do the same in C, but I'd have to recompile every time it changed, or have some external source of info for it.
Lloyd Brown Systems Administrator Fulton Supercomputing Lab Brigham Young University http://marylou.byu.edu On 01/25/2013 09:27 AM, Moe Jette wrote: > 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 >> > > >
