Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vospace-file-catalog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VOSpace INAF
vospace-file-catalog
Commits
2082d3f1
Commit
2082d3f1
authored
4 years ago
by
Cristiano Urban
Browse files
Options
Downloads
Patches
Plain Diff
Added 'job_id' field to the 'node' table.
Signed-off-by:
Cristiano Urban
<
cristiano.urban@inaf.it
>
parent
25a4241a
No related branches found
No related tags found
No related merge requests found
Pipeline
#1954
passed
4 years ago
Stage: dockerize
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
00-tables.sql
+18
-16
18 additions, 16 deletions
00-tables.sql
with
18 additions
and
16 deletions
00-tables.sql
+
18
−
16
View file @
2082d3f1
...
...
@@ -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
)
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment