Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Commits
03f817a5
Commit
03f817a5
authored
4 years ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
DB: Nový stav jobu "preparing"
parent
d128dac6
Branches
Branches containing commit
No related tags found
1 merge request
!81
Generování protokolů a zpracování scanů
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
db/db.ddl
+1
-0
1 addition, 0 deletions
db/db.ddl
db/upgrade-20210701.sql
+2
-0
2 additions, 0 deletions
db/upgrade-20210701.sql
mo/db.py
+2
-0
2 additions, 0 deletions
mo/db.py
with
5 additions
and
0 deletions
db/db.ddl
+
1
−
0
View file @
03f817a5
...
@@ -314,6 +314,7 @@ CREATE TYPE job_type AS ENUM (
...
@@ -314,6 +314,7 @@ CREATE TYPE job_type AS ENUM (
);
);
CREATE TYPE job_state AS ENUM (
CREATE TYPE job_state AS ENUM (
'preparing',
'ready',
'ready',
'running',
'running',
'done', -- Hotovo, out_json a out_file jsou platné
'done', -- Hotovo, out_json a out_file jsou platné
...
...
This diff is collapsed.
Click to expand it.
db/upgrade-20210701.sql
+
2
−
0
View file @
03f817a5
...
@@ -2,3 +2,5 @@ SET ROLE 'mo_osmo';
...
@@ -2,3 +2,5 @@ SET ROLE 'mo_osmo';
ALTER
TYPE
job_type
ADD
VALUE
'create_protocols'
;
ALTER
TYPE
job_type
ADD
VALUE
'create_protocols'
;
ALTER
TYPE
job_type
ADD
VALUE
'process_scans'
;
ALTER
TYPE
job_type
ADD
VALUE
'process_scans'
;
ALTER
TYPE
job_state
ADD
VALUE
'preparing'
;
This diff is collapsed.
Click to expand it.
mo/db.py
+
2
−
0
View file @
03f817a5
...
@@ -690,6 +690,7 @@ class JobType(MOEnum):
...
@@ -690,6 +690,7 @@ class JobType(MOEnum):
class
JobState
(
MOEnum
):
class
JobState
(
MOEnum
):
preparing
=
auto
()
ready
=
auto
()
ready
=
auto
()
running
=
auto
()
running
=
auto
()
done
=
auto
()
done
=
auto
()
...
@@ -700,6 +701,7 @@ class JobState(MOEnum):
...
@@ -700,6 +701,7 @@ class JobState(MOEnum):
job_state_names
=
{
job_state_names
=
{
JobState
.
preparing
:
'
připravuje se
'
,
JobState
.
ready
:
'
čeká na spuštění
'
,
JobState
.
ready
:
'
čeká na spuštění
'
,
JobState
.
running
:
'
zpracovává se
'
,
JobState
.
running
:
'
zpracovává se
'
,
JobState
.
done
:
'
dokončena
'
,
JobState
.
done
:
'
dokončena
'
,
...
...
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