Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
atdb-ldv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
atdb-ldv
Commits
e1d3492c
Commit
e1d3492c
authored
4 years ago
by
Nico Vermaas
Browse files
Options
Downloads
Patches
Plain Diff
troubleshooting
parent
22bd3cca
No related branches found
No related tags found
3 merge requests
!74
Acceptance
,
!73
Master
,
!70
troubleshooting
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
atdb/taskdatabase/services/algorithms.py
+17
-19
17 additions, 19 deletions
atdb/taskdatabase/services/algorithms.py
with
17 additions
and
19 deletions
atdb/taskdatabase/services/algorithms.py
+
17
−
19
View file @
e1d3492c
...
@@ -39,25 +39,23 @@ def get_size(status_list):
...
@@ -39,25 +39,23 @@ def get_size(status_list):
def
convert_logentries_to_html
(
log_entries
):
def
convert_logentries_to_html
(
log_entries
):
results
=
""
results
=
""
try
:
results
+=
"
<th>service</th><th>status</th><th>timestamp</th><th>cpu_cycles</th><th>wall_clock_time</th><th>logfile</th>
"
results
+=
"
<th>service</th><th>status</th><th>timestamp</th><th>cpu_cycles</th><th>wall_clock_time</th><th>logfile</th>
"
results
+=
"
<tbody>
"
results
+=
"
<tbody>
"
for
log
in
log_entries
:
for
log
in
log_entries
:
line
=
"
<tr><td><b>
"
+
log
.
step_name
+
'
</b></td>
'
line
=
"
<tr><td><b>
"
+
log
.
step_name
+
'
</b></td>
'
line
+=
'
<td class=
"'
+
log
.
status
+
'"
>
'
+
log
.
status
+
"
</td>
"
line
+=
'
<td class=
"'
+
log
.
status
+
'"
>
'
+
log
.
status
+
"
</td>
"
line
+=
"
<td>
"
+
str
(
log
.
timestamp
.
strftime
(
"
%m-%d-%Y, %H:%M:%S
"
))
+
"
</td>
"
line
+=
"
<td>
"
+
str
(
log
.
timestamp
.
strftime
(
"
%m-%d-%Y, %H:%M:%S
"
))
+
"
</td>
"
line
+=
"
<td>
"
+
str
(
log
.
cpu_cycles
)
+
"
</td>
"
line
+=
"
<td>
"
+
str
(
log
.
cpu_cycles
)
+
"
</td>
"
line
+=
"
<td>
"
+
str
(
log
.
wall_clock_time
)
+
"
</td>
"
line
+=
"
<td>
"
+
str
(
log
.
wall_clock_time
)
+
"
</td>
"
if
log
.
url_to_log_file
!=
None
:
if
log
.
url_to_log_file
!=
None
:
link
=
"
<a href=
"
+
'"'
+
str
(
log
.
url_to_log_file
)
+
'"
target=
"
_blank
"
>
'
+
"
logfile
"
+
"
</a>
"
link
=
"
<a href=
"
+
'"'
+
str
(
log
.
url_to_log_file
)
+
'"
target=
"
_blank
"
>
'
+
"
logfile
"
+
"
</a>
"
else
:
else
:
link
=
"
-
"
link
=
"
-
"
line
+=
"
<td>
"
+
link
+
"
</td>
"
line
+=
"
<td>
"
+
link
+
"
</td>
"
results
+=
line
results
+=
line
results
+=
"
</tbody>
"
results
+=
"
</tbody>
"
except
:
results
=
"
<tr><td>no data</td></tr>
"
return
results
return
results
...
...
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