Skip to content

Commit

Permalink
[GH-87] Log parsing error for job ID
Browse files Browse the repository at this point in the history
Log the output of the submit command when we failed to parse job ID
for further analysis.
  • Loading branch information
jealous committed Sep 11, 2024
1 parent 76fc765 commit 7d12f54
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ class FloatJob {
ret.status = FloatStatus.of(status)
ret.floatJobID = floatID
ret.rc = rc
if (!ret.nfJobID) {
log.warn "[FLOAT] failed to parse nfJobID from: ${input}"
}
return ret
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ class FloatGridExecutorTest extends FloatBaseTest {
job.status == FloatStatus.PENDING
}

def "parse job id failed"() {
given:
def exec = newTestExecutor()

when:
final out = "Error: open abc.sh: no such file or directory"

then:
exec.parseJobId(out) == ""
}

def "kill command"() {
given:
def exec = newTestExecutor()
Expand Down

0 comments on commit 7d12f54

Please sign in to comment.