1
0
Fork 0
mirror of https://github.com/MillironX/nf-configs.git synced 2024-11-25 17:29:55 +00:00

Handle different (unexpected) sinfo returns in different cases

This commit is contained in:
Pontus Freyhult 2021-04-12 19:31:41 +02:00
parent 57c26c13d9
commit 7be4279718

View file

@ -11,7 +11,7 @@ singularity {
def hostname = "r1"
try {
hostname = "sinfo --local -N -h | head -1 | cut -f1 -d' ' ".execute().text.trim()
hostname = "sinfo --local -N -h | grep -F -v CLUSTER: | head -1 | cut -f1 -d' ' ".execute().text.trim()
} catch (java.io.IOException e) {
System.err.println("WARNING: Could not run sinfo to determine current cluster, defaulting to rackham")
}