Commit 40ec9b94 authored by Jens Korinth's avatar Jens Korinth

Closes #57 - Slurm DSE: squeue causes RuntimeException

* isRunning is now returning true instead of false on error
* fixed the problem, may incur up to 15secs of additional wait time
parent 080ffa67
......@@ -122,7 +122,7 @@ final object Slurm extends Publisher {
}
/** Check via `squeue` if the SLURM job is still running. */
def isRunning(id: Int): Boolean = catchAllDefault[Boolean](false, "Slurm `squeue` failed: ") {
def isRunning(id: Int): Boolean = catchAllDefault[Boolean](true, "Slurm `squeue` failed: ") {
val squeue = "squeue -h".!!
logger.trace("squeue output: {}", squeue)
! "%d".format(id).r.findFirstIn(squeue).isEmpty
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment