On 2024/08/19 15:11, Ward Poelmans via slurm-users wrote:

Have a look if you can spot them in:
function slurm_cli_pre_submit(options, pack_offset)
    env_json = slurm.json_env()
    slurm.log_info("ENV: %s", env_json)
    opt_json = slurm.json_cli_options(options)
    slurm.log_info("OPTIONS: %s", opt_json)
end

I thought all options could be access in the cli filter.

Cheers Ward, however, I'd already dumped the options array
(OK: it's Lua so make that: table) and not see anything,
hence wondering if constraints might be in their own
object/array/table.

But no matter: something I spotted in the options["args"]
array/table has since given me something reproducible to
"key off", so that I can take a different path through the
filter logic, when that is seen, which is what I was hoping
to do by passing a constraint in.

There's usually more than one way to skin a cat: and this
cat is now skinless!

Cheers again,
Kevin

--
slurm-users mailing list -- slurm-users@lists.schedmd.com
To unsubscribe send an email to slurm-users-le...@lists.schedmd.com

Reply via email to