Skip to content
Snippets Groups Projects
Commit 545c3ae2 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

update

parent fb7d5151
No related branches found
No related tags found
No related merge requests found
...@@ -196,7 +196,7 @@ def prepare_corpus(corpus_id): ...@@ -196,7 +196,7 @@ def prepare_corpus(corpus_id):
if not (corpus.creator == current_user or current_user.is_administrator()): if not (corpus.creator == current_user or current_user.is_administrator()):
abort(403) abort(403)
if len(corpus.files.all()) > 0: if len(corpus.files.all()) > 0:
corpus.status = 'preparable' corpus.status = 'submitted'
db.session.commit() db.session.commit()
flash('Corpus marked for preparation!') flash('Corpus marked for preparation!')
else: else:
......
...@@ -326,8 +326,8 @@ class Job(db.Model): ...@@ -326,8 +326,8 @@ class Job(db.Model):
self.status = 'canceling' self.status = 'canceling'
db.session.commit() db.session.commit()
while self.status != 'canceled': while self.status != 'canceled':
# In case the daemon started a submitted job meanwhile # In case the daemon handled a job in any way
if self.status == 'running': if self.status != 'canceling':
self.status = 'canceling' self.status = 'canceling'
db.session.commit() db.session.commit()
sleep(1) sleep(1)
......
...@@ -116,42 +116,30 @@ indicator will show up how the column is sorted right now.; */ ...@@ -116,42 +116,30 @@ indicator will show up how the column is sorted right now.; */
.status[data-status] { .status[data-status] {
background-color: #f44336 !important; /* ~materialize "red" */ background-color: #f44336 !important; /* ~materialize "red" */
} }
.status[data-status="analysing"] { .status[data-status="unprepared"] {
background-color: #4caf50 !important; /* ~materialize green */ background-color: #9e9e9e !important; /* ~materialize grey */
} }
.status[data-status="complete"] { .status[data-status="submitted"] {
background-color: #4caf50 !important; /* ~materialize green */ background-color: #9e9e9e !important; /* ~materialize grey */
} }
.status[data-status="pending"] { .status[data-status="queued"] {
background-color: #ff9800 !important; /* ~materialize orange */ background-color: #2196f3 !important; /* ~materialize blue */
} }
.status[data-status="preparable"] { .status[data-status="running"] {
background-color: #ff9800 !important; /* ~materialize orange */ background-color: #ffc107 !important; /* ~materialize amber */
} }
.status[data-status="prepared"] { .status[data-status="complete"] {
background-color: #4caf50 !important; /* ~materialize green */ background-color: #4caf50 !important; /* ~materialize green */
} }
.status[data-status="preparing"] { .status[data-status="prepared"] {
background-color: #03a9f4 !important; /* ~materialize light-blue */ background-color: #4caf50 !important; /* ~materialize green */
}
.status[data-status="removing"] {
background-color: #ff5722 !important; /* ~materialize deep-orange */
}
.status[data-status="running"] {
background-color: #ffc107 !important; /* ~materialize amber */
} }
.status[data-status="start analysis"] { .status[data-status="start analysis"] {
background-color: #ffeb3b !important; /* ~materialize yellow */ background-color: #2196f3 !important; /* ~materialize blue */
} }
.status[data-status="stopping"] { .status[data-status="analysing"] {
background-color: #ff5722 !important; /* ~materialize deep-orange */ background-color: #4caf50 !important; /* ~materialize green */
} }
.status[data-status="stop analysis"] { .status[data-status="stop analysis"] {
background-color: #ff5722 !important; /* ~materialize deep-orange */ background-color: #ff5722 !important; /* ~materialize deep-orange */
} }
.status[data-status="submitted"] {
background-color: #2196f3 !important; /* ~materialize blue */
}
.status[data-status="unprepared"] {
background-color: #9e9e9e !important; /* ~materialize grey */
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment