[slurm-users] getting started with job_submit_lua

Mark Dixon mark.c.dixon at durham.ac.uk
Tue Sep 15 17:47:20 UTC 2020

Hi all,

I'm trying to get started with the lua job_submit feature and I have a 
really dumb question. This job_submit Lua script:

   function slurm_job_submit( job_desc, part_list, submit_uid )

      slurm.log_info("submit called lua plugin")
      for k,v in pairs(job_desc) do
         slurm.log_info("submit %s", k)
      slurm.log_info("submit completed lua plugin")

      return slurm.SUCCESS

   function slurm_job_modify(job_desc, job_rec, part_list, modify_uid)
      slurm.log_info("submit called lua plugin2")
      return slurm.SUCCESS


   Sep 15 18:00:57 quack1 slurmctld[9617]: job_submit.lua: submit called lua plugin
   Sep 15 18:00:57 quack1 slurmctld[9617]: job_submit.lua: submit completed lua plugin

When I:

   srun --pty -p test.q bash

I was expecting job_desc to be iterated over and show some interesting 
stuff in my log, but it looks empty. Any ideas why that might be, please?

Slurm 19.05.7-1 / Lua 5.1.4 / CentOS 7.8 / x86_64



More information about the slurm-users mailing list