From 261905a36422daca2f879972ccb21bf5dca411cb Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Thu, 20 Nov 2025 15:08:22 +0100 Subject: [PATCH] unify out_of_memory jobState spelling - underscores used in existing databases --- api/swagger.yaml | 2 +- internal/api/docs.go | 2 +- .../repository/migrations/sqlite3/09_add-job-cache.up.sql | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/swagger.yaml b/api/swagger.yaml index 6a4adbd..119e952 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -227,7 +227,7 @@ definitions: - deadline - failed - node_fail - - out-of-memory + - out_of_memory - pending - preempted - running diff --git a/internal/api/docs.go b/internal/api/docs.go index c10745c..d0b5c6f 100644 --- a/internal/api/docs.go +++ b/internal/api/docs.go @@ -1423,7 +1423,7 @@ const docTemplate = `{ "deadline", "failed", "node_fail", - "out-of-memory", + "out_of_memory", "pending", "preempted", "running", diff --git a/internal/repository/migrations/sqlite3/09_add-job-cache.up.sql b/internal/repository/migrations/sqlite3/09_add-job-cache.up.sql index 24bf0a5..ea55df7 100644 --- a/internal/repository/migrations/sqlite3/09_add-job-cache.up.sql +++ b/internal/repository/migrations/sqlite3/09_add-job-cache.up.sql @@ -14,7 +14,7 @@ CREATE TABLE "job_cache" ( job_state VARCHAR(255) NOT NULL CHECK (job_state IN ( 'boot_fail', 'cancelled', 'completed', 'deadline', - 'failed', 'node_fail', 'out-of-memory', 'pending', + 'failed', 'node_fail', 'out_of_memory', 'pending', 'preempted', 'running', 'suspended', 'timeout' )), meta_data TEXT, -- JSON @@ -49,7 +49,7 @@ CREATE TABLE "job_new" ( job_state TEXT NOT NULL CHECK (job_state IN ( 'boot_fail', 'cancelled', 'completed', 'deadline', - 'failed', 'node_fail', 'out-of-memory', 'pending', + 'failed', 'node_fail', 'out_of_memory', 'pending', 'preempted', 'running', 'suspended', 'timeout' )), meta_data TEXT, -- JSON