Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
jflow
Commits
b8d0327c
Commit
b8d0327c
authored
Nov 18, 2015
by
Jerome Mariette
Browse files
do not serialize the workflow when updating the status
parent
62e50c39
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jflow/workflow.py
View file @
b8d0327c
...
...
@@ -890,8 +890,8 @@ class Workflow(threading.Thread):
except
Exception
as
e
:
self
.
_log
(
str
(
e
),
traceback
=
traceback
.
format_exc
(
chain
=
False
))
utils
.
display_error_message
(
str
(
e
))
def
_update_status_from_log
(
self
):
def
get_status
(
self
):
# first update the status from weaver folders
# TODO update self.end_time
try
:
...
...
@@ -913,10 +913,6 @@ class Workflow(threading.Thread):
elif
self
.
status
!=
self
.
STATUS_COMPLETED
:
self
.
status
=
self
.
STATUS_STARTED
except
:
pass
self
.
_serialize
()
def
get_status
(
self
):
self
.
_update_status_from_log
()
return
self
.
status
def
get_resource
(
self
,
resource
):
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment