feat: init commint

This commit is contained in:
2026-09-18 15:26:19 +08:00
parent 3b61a767a0
commit 9f47dbb5cc
95 changed files with 7712 additions and 1137 deletions

View File

@@ -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,