mirror of
https://github.com/MillironX/nf-configs.git
synced 2024-11-22 08:29:54 +00:00
Handle different (unexpected) sinfo returns in different cases
This commit is contained in:
parent
57c26c13d9
commit
7be4279718
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ singularity {
|
||||||
|
|
||||||
def hostname = "r1"
|
def hostname = "r1"
|
||||||
try {
|
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) {
|
} catch (java.io.IOException e) {
|
||||||
System.err.println("WARNING: Could not run sinfo to determine current cluster, defaulting to rackham")
|
System.err.println("WARNING: Could not run sinfo to determine current cluster, defaulting to rackham")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue