georgiesamaha / configBuilder-nf

Nextflow config builder scripts for supported HPC infrastructures.
7 stars 1 forks source link

Consider autodetection of job scheduler #5

Closed jfy133 closed 8 months ago

jfy133 commented 9 months ago

You could maybe try automatically picking up which scheduler is on the system before asking which one (i.e., to sort of set a default).

So for example, just before this question is asked:

[?] Select the job scheduler that your HPC system uses (Specify local to run jobs on login node): slurm
   local
   aws batch
   azure batch
   bridge
   flux
   lsf
   moab
   nqsii
   oar
   pbs
   pbspro
   sge
 > slurm

you could run a range of commands e.g. sinfo for slurm, qsub for SGE etc to see if they give a exit code of 0, and if they do then offer that to the user as the default.