1
0
Fork 0
mirror of https://github.com/MillironX/nf-configs.git synced 2024-11-22 08:29:54 +00:00

Determine cluster through slurm

This commit is contained in:
Pontus Freyhult 2021-04-07 18:42:33 +02:00
parent c5070f3eba
commit 4d64db85eb

View file

@ -9,7 +9,7 @@ singularity {
enabled = true
}
def hostname = "hostname".execute().text.trim()
def hostname = "sinfo --local -N -h | head -1 | cut -f1 -d' ' ".execute().text.trim()
process {
// closure to create a suitable clusterOptions