Ticket 13565

Summary: help with job_submit.lua
Product: Slurm Reporter: Boris Yazlovitsky <boris.yazlovitsky>
Component: SchedulingAssignee: Jason Booth <jbooth>
Status: RESOLVED INFOGIVEN QA Contact:
Severity: 4 - Minor Issue    
Priority: ---    
Version: 21.08.5   
Hardware: All   
OS: Linux   
Site: ASML Slinky Site: ---
Alineos Sites: --- Atos/Eviden Sites: ---
Confidential Site: --- Coreweave sites: ---
Cray Sites: --- DS9 clusters: ---
Google sites: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- NoveTech Sites: ---
Nvidia HWinf-CS Sites: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Tzag Elita Sites: ---
Linux Distro: --- Machine Name:
CLE Version: Version Fixed:
Target Release: --- DevPrio: ---
Emory-Cloud Sites: ---

Description Boris Yazlovitsky 2022-03-04 06:51:14 MST
hello - 

need help writing lua script to requeue jobs based on submit parameters,

thanks,
Boris Yazlovitsky
boris.yazlovitsky@asml.com
Comment 1 Jason Booth 2022-03-04 10:52:55 MST
It sounds like you want to use a cli filter to modify the job on the submit host before sending it to the scheduler to be evaluated.


There is an example in the SchedMD repository.

https://github.com/SchedMD/slurm/blob/master/etc/cli_filter.lua.example

You would then enable this  by putting the cli_filter.lua in the $SLURM_HOME/etc/ directory and setting the slurm.conf parameter:

> CliFilterPlugins=lua

Please let me know if you need more information.
Comment 2 Jason Booth 2022-03-08 11:14:32 MST
Boris, I am resolving this out. Please feel free to re-open if you have further questions.