Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ess-public-screens
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
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
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
ics-software
ess-public-screens
Commits
69c7e211
Commit
69c7e211
authored
4 years ago
by
Emanuele Laface
Browse files
Options
Downloads
Patches
Plain Diff
fix endpoint health
parent
ea17b520
No related branches found
No related tags found
No related merge requests found
Pipeline
#59084
passed
4 years ago
Stage: check
Stage: build
Stage: release
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PythonServer/pos-python-server.py
+2
-1
2 additions, 1 deletion
PythonServer/pos-python-server.py
with
2 additions
and
1 deletion
PythonServer/pos-python-server.py
+
2
−
1
View file @
69c7e211
...
@@ -4,6 +4,7 @@ import epics
...
@@ -4,6 +4,7 @@ import epics
import
time
import
time
import
requests
import
requests
from
fastapi
import
FastAPI
from
fastapi
import
FastAPI
from
fastapi.responses
import
PlainTextResponse
import
dateutil.parser
import
dateutil.parser
import
datetime
import
datetime
from
epicsarchiver
import
ArchiverAppliance
from
epicsarchiver
import
ArchiverAppliance
...
@@ -23,7 +24,7 @@ executor = ThreadPoolExecutor(max_workers=10)
...
@@ -23,7 +24,7 @@ executor = ThreadPoolExecutor(max_workers=10)
@app.get
(
"
/-/health
"
)
@app.get
(
"
/-/health
"
)
async
def
heath
():
async
def
heath
():
return
"
OK
"
return
PlainTextResponse
(
"
OK
"
)
@app.get
(
"
/api/v1/caget/{pvlist}
"
)
@app.get
(
"
/api/v1/caget/{pvlist}
"
)
...
...
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