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
7acf1828
Commit
7acf1828
authored
3 years ago
by
Cyril Danilevski
Browse files
Options
Downloads
Plain Diff
Add MyMDC check_connection action
See merge request detectors/pycalibration!520
parents
e8e65511
ee1dfc6c
No related branches found
No related tags found
1 merge request
!520
Add MyMDC check_connection action
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webservice/webservice.py
+9
-0
9 additions, 0 deletions
webservice/webservice.py
with
9 additions
and
0 deletions
webservice/webservice.py
+
9
−
0
View file @
7acf1828
...
...
@@ -752,10 +752,19 @@ class ActionsServer:
'
query-rid
'
,
'
upload-yaml
'
,
'
update_conf
'
,
'
check_connection
'
,
}
# Handler methods for each available action ------------------------------
async
def
handle_check_connection
(
self
,
*
args
):
"""
Inform the caller that the service is up and running.
MyMDC will send the same information as provided to dark or correct
requests, but nothing is done with this information.
"""
return
b
'
success
'
async
def
handle_correct
(
self
,
rid
,
_sase
,
instrument
,
cycle
,
proposal
,
runnr
,
priority
):
...
...
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