unify out_of_memory jobState spelling

- underscores used in existing databases
This commit is contained in:
Christoph Kluge
2025-11-20 15:08:22 +01:00
parent da8d562eba
commit 261905a364
3 changed files with 4 additions and 4 deletions

View File

@@ -227,7 +227,7 @@ definitions:
- deadline - deadline
- failed - failed
- node_fail - node_fail
- out-of-memory - out_of_memory
- pending - pending
- preempted - preempted
- running - running

View File

@@ -1423,7 +1423,7 @@ const docTemplate = `{
"deadline", "deadline",
"failed", "failed",
"node_fail", "node_fail",
"out-of-memory", "out_of_memory",
"pending", "pending",
"preempted", "preempted",
"running", "running",

View File

@@ -14,7 +14,7 @@ CREATE TABLE "job_cache" (
job_state VARCHAR(255) NOT NULL job_state VARCHAR(255) NOT NULL
CHECK (job_state IN ( CHECK (job_state IN (
'boot_fail', 'cancelled', 'completed', 'deadline', 'boot_fail', 'cancelled', 'completed', 'deadline',
'failed', 'node_fail', 'out-of-memory', 'pending', 'failed', 'node_fail', 'out_of_memory', 'pending',
'preempted', 'running', 'suspended', 'timeout' 'preempted', 'running', 'suspended', 'timeout'
)), )),
meta_data TEXT, -- JSON meta_data TEXT, -- JSON
@@ -49,7 +49,7 @@ CREATE TABLE "job_new" (
job_state TEXT NOT NULL job_state TEXT NOT NULL
CHECK (job_state IN ( CHECK (job_state IN (
'boot_fail', 'cancelled', 'completed', 'deadline', 'boot_fail', 'cancelled', 'completed', 'deadline',
'failed', 'node_fail', 'out-of-memory', 'pending', 'failed', 'node_fail', 'out_of_memory', 'pending',
'preempted', 'running', 'suspended', 'timeout' 'preempted', 'running', 'suspended', 'timeout'
)), )),
meta_data TEXT, -- JSON meta_data TEXT, -- JSON