Add and correct job states

This commit is contained in:
Jan Eitzinger
2022-02-17 08:56:37 +01:00
parent 6d0a9ce6e8
commit d09d27a04c
2 changed files with 10 additions and 8 deletions

View File

@@ -31,7 +31,7 @@ const JOBS_DB_SCHEMA string = `
` + "`partition`" + ` VARCHAR(255) NOT NULL, -- partition is a keyword in mysql -.-
array_job_id BIGINT NOT NULL,
duration INT,
job_state VARCHAR(255) NOT NULL CHECK(job_state IN ('running', 'completed', 'failed', 'canceled', 'stopped', 'timeout')),
job_state VARCHAR(255) NOT NULL CHECK(job_state IN ('running', 'completed', 'failed', 'cancelled', 'stopped', 'timeout', 'preempted', 'out_of_memory')),
meta_data TEXT, -- JSON
resources TEXT NOT NULL, -- JSON