feat: init commint
This commit is contained in:
@@ -44,6 +44,13 @@ def readiness(request):
|
||||
cache.delete(cache_key)
|
||||
except Exception:
|
||||
checks["cache"] = False
|
||||
if settings.TICKET_AUTOMATION_ENABLED:
|
||||
try:
|
||||
from apps.tickets.automation import ticket_automation_readiness
|
||||
|
||||
checks["ticket_automation"] = ticket_automation_readiness()["ready"]
|
||||
except Exception:
|
||||
checks["ticket_automation"] = False
|
||||
ready = all(checks.values())
|
||||
return Status(
|
||||
200 if ready else 503,
|
||||
|
||||
Reference in New Issue
Block a user