Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
lscsoft
gracedb
Commits
61995562
Commit
61995562
authored
Jun 26, 2019
by
Tanner Prestegard
Committed by
GraceDB
Aug 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't apply maintenance mode for heartbeat view
It's necessary for kubernetes health checks.
parent
37eb3a61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
gracedb/core/views.py
gracedb/core/views.py
+7
-1
No files found.
gracedb/core/views.py
View file @
61995562
import
logging
from
django.http
import
HttpResponse
from
django.views.generic.edit
import
FormView
import
logging
from
.decorators
import
ignore_maintenance_mode
# Set up logger
logger
=
logging
.
getLogger
(
__name__
)
@
ignore_maintenance_mode
def
heartbeat
(
request
):
# Do something (?) and return 200 response
return
HttpResponse
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment