Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
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
calibration
pycalibration
Commits
7f6c5261
Commit
7f6c5261
authored
1 year ago
by
Thomas Kluyver
Browse files
Options
Downloads
Patches
Plain Diff
Change warning logs to errors
parent
dad5ecee
No related branches found
No related tags found
1 merge request
!943
[Webservice] Create correction reports in MyMdC when jobs have finished
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webservice/job_monitor.py
+2
-2
2 additions, 2 deletions
webservice/job_monitor.py
with
2 additions
and
2 deletions
webservice/job_monitor.py
+
2
−
2
View file @
7f6c5261
...
@@ -343,11 +343,11 @@ class JobsMonitor:
...
@@ -343,11 +343,11 @@ class JobsMonitor:
try
:
try
:
report_path
=
args
[
args
.
index
(
"
--report-to
"
)
+
1
]
+
"
.pdf
"
report_path
=
args
[
args
.
index
(
"
--report-to
"
)
+
1
]
+
"
.pdf
"
except
(
ValueError
,
IndexError
):
except
(
ValueError
,
IndexError
):
log
.
warning
(
"
Couldn
'
t find report path in %r
"
,
args
)
log
.
error
(
"
Couldn
'
t find report path in %r
"
,
args
)
return
return
if
not
os
.
path
.
isfile
(
report_path
):
if
not
os
.
path
.
isfile
(
report_path
):
log
.
warning
(
"
Jobs finished, but report file %s missing
"
,
report_path
)
log
.
error
(
"
Jobs finished, but report file %s missing
"
,
report_path
)
return
return
ts
=
datetime
.
fromtimestamp
(
os
.
stat
(
report_path
).
st_mtime
,
tz
=
timezone
.
utc
)
ts
=
datetime
.
fromtimestamp
(
os
.
stat
(
report_path
).
st_mtime
,
tz
=
timezone
.
utc
)
...
...
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