mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 11:31:08 +00:00
Increase Celery ping timeout for monitoring page
This should prevent some transient alerts.
This commit is contained in:
parent
4b1012b185
commit
3709f5c7a9
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ class CeleryStatus(View):
|
||||||
def celery_ping(request):
|
def celery_ping(request):
|
||||||
"""Just tells you if Celery is on or not"""
|
"""Just tells you if Celery is on or not"""
|
||||||
try:
|
try:
|
||||||
ping = celery.control.inspect().ping()
|
ping = celery.control.inspect().ping(timeout=5)
|
||||||
if ping:
|
if ping:
|
||||||
return HttpResponse()
|
return HttpResponse()
|
||||||
# pylint: disable=broad-except
|
# pylint: disable=broad-except
|
||||||
|
|
Loading…
Reference in a new issue