mirror of
				https://github.com/ClusterCockpit/cc-backend
				synced 2025-11-03 17:15:06 +01:00 
			
		
		
		
	add more missing node_fail states
This commit is contained in:
		@@ -1512,7 +1512,8 @@
 | 
			
		||||
                        "cancelled",
 | 
			
		||||
                        "stopped",
 | 
			
		||||
                        "timeout",
 | 
			
		||||
                        "out_of_memory"
 | 
			
		||||
                        "out_of_memory",
 | 
			
		||||
                        "node_fail"
 | 
			
		||||
                    ],
 | 
			
		||||
                    "allOf": [
 | 
			
		||||
                        {
 | 
			
		||||
@@ -1670,7 +1671,8 @@
 | 
			
		||||
                        "cancelled",
 | 
			
		||||
                        "stopped",
 | 
			
		||||
                        "timeout",
 | 
			
		||||
                        "out_of_memory"
 | 
			
		||||
                        "out_of_memory",
 | 
			
		||||
                        "node_fail"
 | 
			
		||||
                    ],
 | 
			
		||||
                    "allOf": [
 | 
			
		||||
                        {
 | 
			
		||||
 
 | 
			
		||||
@@ -201,6 +201,7 @@ definitions:
 | 
			
		||||
        - stopped
 | 
			
		||||
        - timeout
 | 
			
		||||
        - out_of_memory
 | 
			
		||||
        - node_fail
 | 
			
		||||
        example: completed
 | 
			
		||||
      metaData:
 | 
			
		||||
        additionalProperties:
 | 
			
		||||
@@ -314,6 +315,7 @@ definitions:
 | 
			
		||||
        - stopped
 | 
			
		||||
        - timeout
 | 
			
		||||
        - out_of_memory
 | 
			
		||||
        - node_fail
 | 
			
		||||
        example: completed
 | 
			
		||||
      metaData:
 | 
			
		||||
        additionalProperties:
 | 
			
		||||
 
 | 
			
		||||
@@ -1518,7 +1518,8 @@ const docTemplate = `{
 | 
			
		||||
                        "cancelled",
 | 
			
		||||
                        "stopped",
 | 
			
		||||
                        "timeout",
 | 
			
		||||
                        "out_of_memory"
 | 
			
		||||
                        "out_of_memory",
 | 
			
		||||
                        "node_fail"
 | 
			
		||||
                    ],
 | 
			
		||||
                    "allOf": [
 | 
			
		||||
                        {
 | 
			
		||||
@@ -1676,7 +1677,8 @@ const docTemplate = `{
 | 
			
		||||
                        "cancelled",
 | 
			
		||||
                        "stopped",
 | 
			
		||||
                        "timeout",
 | 
			
		||||
                        "out_of_memory"
 | 
			
		||||
                        "out_of_memory",
 | 
			
		||||
                        "node_fail"
 | 
			
		||||
                    ],
 | 
			
		||||
                    "allOf": [
 | 
			
		||||
                        {
 | 
			
		||||
 
 | 
			
		||||
@@ -21,7 +21,7 @@ type BaseJob struct {
 | 
			
		||||
	Partition          string             `json:"partition,omitempty" db:"cluster_partition" example:"main"`
 | 
			
		||||
	Project            string             `json:"project" db:"project" example:"abcd200"`
 | 
			
		||||
	User               string             `json:"user" db:"hpc_user" example:"abcd100h"`
 | 
			
		||||
	State              JobState           `json:"jobState" db:"job_state" example:"completed" enums:"completed,failed,cancelled,stopped,timeout,out_of_memory"`
 | 
			
		||||
	State              JobState           `json:"jobState" db:"job_state" example:"completed" enums:"completed,failed,cancelled,stopped,timeout,out_of_memory,node_fail"`
 | 
			
		||||
	Tags               []*Tag             `json:"tags,omitempty"`
 | 
			
		||||
	RawEnergyFootprint []byte             `json:"-" db:"energy_footprint"`
 | 
			
		||||
	RawFootprint       []byte             `json:"-" db:"footprint"`
 | 
			
		||||
 
 | 
			
		||||
@@ -76,6 +76,7 @@
 | 
			
		||||
        "cancelled",
 | 
			
		||||
        "stopped",
 | 
			
		||||
        "out_of_memory",
 | 
			
		||||
        "node_fail",
 | 
			
		||||
        "timeout"
 | 
			
		||||
      ]
 | 
			
		||||
    },
 | 
			
		||||
 
 | 
			
		||||
@@ -23,6 +23,7 @@
 | 
			
		||||
    "timeout",
 | 
			
		||||
    "preempted",
 | 
			
		||||
    "out_of_memory",
 | 
			
		||||
    "node_fail",
 | 
			
		||||
  ];
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user