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
24c1b204
Commit
24c1b204
authored
Oct 02, 2015
by
Jerome Mariette
Browse files
better display for status error
parent
adf82612
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jflow/workflow.py
View file @
24c1b204
...
@@ -501,7 +501,7 @@ class Workflow(threading.Thread):
...
@@ -501,7 +501,7 @@ class Workflow(threading.Thread):
if
display_errors
and
len
(
status_info
[
"failed_commands"
])
>
0
:
if
display_errors
and
len
(
status_info
[
"failed_commands"
])
>
0
:
if
components_errors
==
""
:
if
components_errors
==
""
:
components_errors
=
"Failed Commands :
\n
"
components_errors
=
"Failed Commands :
\n
"
components_errors
+=
" - "
+
component
+
" :
\n
"
+
"
\n
"
.
join
(
status_info
[
"failed_commands"
])
components_errors
+=
" - "
+
component
+
" :
\n
"
+
"
\n
"
.
join
(
status_info
[
"failed_commands"
])
+
"
\n
"
status
+=
" - "
+
component
+
", time elapsed "
+
time_format
(
status_info
[
"time"
])
+
\
status
+=
" - "
+
component
+
", time elapsed "
+
time_format
(
status_info
[
"time"
])
+
\
" (total:"
+
str
(
status_info
[
"tasks"
])
+
", "
+
waiting
+
", "
+
running
+
", "
+
failed
+
\
" (total:"
+
str
(
status_info
[
"tasks"
])
+
", "
+
waiting
+
", "
+
running
+
", "
+
failed
+
\
", "
+
aborted
+
", "
+
completed
+
")"
", "
+
aborted
+
", "
+
completed
+
")"
...
@@ -511,7 +511,7 @@ class Workflow(threading.Thread):
...
@@ -511,7 +511,7 @@ class Workflow(threading.Thread):
pretty_str
+=
(
"
\n
"
+
worflow_errors
)
if
worflow_errors
!=
""
else
""
pretty_str
+=
(
"
\n
"
+
worflow_errors
)
if
worflow_errors
!=
""
else
""
if
len
(
workflow
.
get_components_nameid
())
>
0
:
if
len
(
workflow
.
get_components_nameid
())
>
0
:
pretty_str
+=
(
"
\n
"
+
status
)
if
status
!=
""
else
""
pretty_str
+=
(
"
\n
"
+
status
)
if
status
!=
""
else
""
pretty_str
+=
(
"
\n
"
+
components_errors
)
if
components_errors
!=
""
else
""
pretty_str
+=
(
"
\n
"
+
components_errors
[:
-
1
]
)
if
components_errors
!=
""
else
""
if
html
:
return
pretty_str
.
replace
(
"
\n
"
,
"<br />"
)
if
html
:
return
pretty_str
.
replace
(
"
\n
"
,
"<br />"
)
else
:
return
pretty_str
else
:
return
pretty_str
else
:
else
:
...
...
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