Increase Celery ping timeout for monitoring page

This should prevent some transient alerts.
This commit is contained in:
Wesley Aptekar-Cassels 2023-04-07 03:18:43 -04:00
parent 4b1012b185
commit 3709f5c7a9

View file

@ -60,7 +60,7 @@ class CeleryStatus(View):
def celery_ping(request):
"""Just tells you if Celery is on or not"""
try:
ping = celery.control.inspect().ping()
ping = celery.control.inspect().ping(timeout=5)
if ping:
return HttpResponse()
# pylint: disable=broad-except