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
bad1af5e
"README.md" did not exist on "b64962482e81fd89b32f32259f5324849d09e09f"
Commit
bad1af5e
authored
2 years ago
by
Karim Ahmed
Committed by
Thomas Kluyver
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Extend docstring
parent
961b14a0
No related branches found
No related tags found
1 merge request
!683
[Webservice] Restructure database to give more meaningful success/failure information
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webservice/job_monitor.py
+1
-1
1 addition, 1 deletion
webservice/job_monitor.py
with
1 addition
and
1 deletion
webservice/job_monitor.py
+
1
−
1
View file @
bad1af5e
...
@@ -238,7 +238,7 @@ class JobsMonitor:
...
@@ -238,7 +238,7 @@ class JobsMonitor:
return
r
[
'
req_id
'
]
return
r
[
'
req_id
'
]
def
process_request_finished
(
self
,
req_id
):
def
process_request_finished
(
self
,
req_id
):
"""
Send notifications that a request has finished
"""
"""
Send
Kafka
notifications
and update myMDC
that a request has finished
.
"""
krb_id_successes
=
{
r
[
0
]:
r
[
1
]
for
r
in
self
.
job_db
.
execute
(
krb_id_successes
=
{
r
[
0
]:
r
[
1
]
for
r
in
self
.
job_db
.
execute
(
"
SELECT karabo_id, success FROM executions WHERE req_id = ?
"
,
"
SELECT karabo_id, success FROM executions WHERE req_id = ?
"
,
(
req_id
,)
(
req_id
,)
...
...
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