Skip to content
Snippets Groups Projects
Commit 2082d3f1 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Added 'job_id' field to the 'node' table.

parent 25a4241a
No related branches found
No related tags found
No related merge requests found
Pipeline #1954 passed
......@@ -48,6 +48,8 @@ CREATE TABLE node (
-- async_trans tells us whether a node is hosted on a cold storage and has to be transferred asynchronously
sticky BOOLEAN default false,
busy_state BOOLEAN default NULL,
job_id VARCHAR default NULL,
-- job_id will likely replace 'busy_state'
creator_id VARCHAR default NULL,
group_read VARCHAR[] default NULL,
group_write VARCHAR[] default NULL,
......@@ -128,21 +130,21 @@ CREATE TYPE JobPhaseEnum AS ENUM ('PENDING', 'QUEUED', 'EXECUTING', 'ABORTED', '
CREATE TYPE ErrorType AS ENUM('transient','fatal');
CREATE TABLE job (
job_id varchar not null,
owner_id varchar not null,
job_type varchar not null,
phase JobPhaseEnum not null,
start_time timestamp,
end_time timestamp,
creation_time timestamp default CURRENT_TIMESTAMP,
job_info jsonb,
processed_blocks int default null,
total_blocks int default null,
results jsonb,
error_message varchar,
job_id VARCHAR NOT NULL,
owner_id VARCHAR NOT NULL,
job_type VARCHAR NOT NULL,
phase JobPhaseEnum NOT NULL,
start_time TIMESTAMP,
end_time TIMESTAMP,
creation_time TIMESTAMP default CURRENT_TIMESTAMP,
job_info JSONB,
processed_blocks INT default NULL,
total_blocks INT default NULL,
results JSONB,
error_message VARCHAR,
error_type ErrorType,
error_has_detail boolean,
error_detail varchar,
error_has_detail BOOLEAN,
error_detail VARCHAR,
primary key(job_id)
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment