add node_fail job state

This commit is contained in:
Michael Panzlaff 2025-03-04 17:39:38 +01:00
parent a485bd5977
commit 6454576417
4 changed files with 13 additions and 5 deletions

View File

@ -1786,7 +1786,8 @@
"stopped", "stopped",
"timeout", "timeout",
"preempted", "preempted",
"out_of_memory" "out_of_memory",
"node_fail"
], ],
"x-enum-varnames": [ "x-enum-varnames": [
"JobStateRunning", "JobStateRunning",
@ -1796,7 +1797,8 @@
"JobStateStopped", "JobStateStopped",
"JobStateTimeout", "JobStateTimeout",
"JobStatePreempted", "JobStatePreempted",
"JobStateOutOfMemory" "JobStateOutOfMemory",
"JobStateNodeFail"
] ]
}, },
"schema.JobStatistics": { "schema.JobStatistics": {

View File

@ -395,6 +395,7 @@ definitions:
- timeout - timeout
- preempted - preempted
- out_of_memory - out_of_memory
- node_fail
type: string type: string
x-enum-varnames: x-enum-varnames:
- JobStateRunning - JobStateRunning
@ -405,6 +406,7 @@ definitions:
- JobStateTimeout - JobStateTimeout
- JobStatePreempted - JobStatePreempted
- JobStateOutOfMemory - JobStateOutOfMemory
- JobStateNodeFail
schema.JobStatistics: schema.JobStatistics:
description: Specification for job metric statistics. description: Specification for job metric statistics.
properties: properties:

View File

@ -1792,7 +1792,8 @@ const docTemplate = `{
"stopped", "stopped",
"timeout", "timeout",
"preempted", "preempted",
"out_of_memory" "out_of_memory",
"node_fail"
], ],
"x-enum-varnames": [ "x-enum-varnames": [
"JobStateRunning", "JobStateRunning",
@ -1802,7 +1803,8 @@ const docTemplate = `{
"JobStateStopped", "JobStateStopped",
"JobStateTimeout", "JobStateTimeout",
"JobStatePreempted", "JobStatePreempted",
"JobStateOutOfMemory" "JobStateOutOfMemory",
"JobStateNodeFail"
] ]
}, },
"schema.JobStatistics": { "schema.JobStatistics": {

View File

@ -143,6 +143,7 @@ const (
JobStateTimeout JobState = "timeout" JobStateTimeout JobState = "timeout"
JobStatePreempted JobState = "preempted" JobStatePreempted JobState = "preempted"
JobStateOutOfMemory JobState = "out_of_memory" JobStateOutOfMemory JobState = "out_of_memory"
JobStateNodeFail JobState = "node_fail"
) )
func (e *JobState) UnmarshalGQL(v interface{}) error { func (e *JobState) UnmarshalGQL(v interface{}) error {
@ -171,5 +172,6 @@ func (e JobState) Valid() bool {
e == JobStateStopped || e == JobStateStopped ||
e == JobStateTimeout || e == JobStateTimeout ||
e == JobStatePreempted || e == JobStatePreempted ||
e == JobStateOutOfMemory e == JobStateOutOfMemory ||
e == JobStateNodeFail
} }