Skip to content
GitLab
Menu
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
056252b3
Commit
056252b3
authored
Mar 04, 2013
by
Jerome Mariette
Browse files
handle sys.exit from thread
parent
90cfca64
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jflow/workflow.py
View file @
056252b3
...
...
@@ -173,14 +173,16 @@ class Workflow(threading.Thread):
self
.
_serialize
()
# if not done yet, init the component nameids list before to run
if
not
self
.
component_nameids_is_init
:
self
.
process
()
try
:
self
.
process
()
except
SystemExit
,
e
:
print
e
self
.
component_nameids_is_init
=
True
self
.
_serialize
()
self
.
process
()
if
len
(
self
.
components
)
>
0
:
self
.
_execute_weaver
()
self
.
_serialize
()
self
.
post_process
()
try
:
self
.
process
()
except
SystemExit
,
e
:
print
e
if
self
.
status
==
self
.
STATUS_STARTED
:
self
.
status
=
self
.
STATUS_COMPLETED
self
.
end_time
=
time
.
time
()
self
.
_serialize
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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