Group AI errors by owner service
All checks were successful
CI / test (push) Successful in 23s
Build and Deploy / build-and-deploy (push) Successful in 24s

This commit is contained in:
Grendgi
2026-06-09 12:06:01 +03:00
parent da144ecefe
commit 562fad6f87
5 changed files with 12 additions and 4 deletions

View File

@@ -0,0 +1,3 @@
CREATE INDEX IF NOT EXISTS ai_jobs_owner_error_stats_idx
ON ai_jobs (owner_service, task_type, model_profile, error_code, updated_at DESC)
WHERE status = 'failed';