Aaron, While SchedMD does not accept pull requests through GitHub, we do take code and/or documentation contributions (as outlined in CONTRIBUTING.md) through our bug tracker at http://bugs.schedmd.com. Please be sure to set the Severity level to 'C - Contributions' to make sure it is routed to the appropriate location.
Jacob On Tue, Nov 27, 2018 at 1:01 PM Aaron Jackson <aa...@aaronsplace.co.uk> wrote: > Thanks both who helped with this. I had to recompile Slurm with Lua, but > I now have it working. > > function slurm_job_submit(job_desc, part_list, submit_uid) > if not (job_desc.req_nodes == nil) then > slurm.log_user("Must not specify nodelist") > return slurm.FAILURE > end > > return slurm.SUCCESS > end > > The documentation for this API was a bit lacking, ended up having to > read the C source. Is SchedMD accepting pull requests for documentation? > I'd be happy to assist here. > > Thanks! > > Aaron > > > Henkel, Andreas writes: > > > Hi, > > A spank plugin would probably work. > > > > A job-submit which replaces the nodelist with an empty string could work > either. > > > > What about just changing the .profile and set the env variable for > nodelist to empty string? > > „Note that environment variables will override any options set in a > batch script, and command line options will override any environment > variables“ > > If the call —nodelist in sbatch-script this may solve the problem. > > > > Beyond all that I would just contact those users and tell them not to > use nodelist. > > > > Andreas > >> Am 27.11.2018 um 18:05 schrieb Aaron Jackson <aa...@aaronsplace.co.uk>: > >> > >> Hi all, > >> > >> I am wondering if it is possible to disable the use of the --nodelist > >> argument from srun/sbatch/salloc/etc? In the worst case I can just edit > >> the code for argument parsing? > >> > >> Having only recently moved over to Slurm, some users have a preference > >> for particular nodes with no justifiable reason. I would rather the > >> Scheduler have full control over where a job ends up based on where it > >> fits. > >> > >> Thanks, > >> Aaron > >> > > > -- > Aaron Jackson - M6PIU > http://aaronsplace.co.uk/ > >