Files
ai-service/migrations/006_ai_jobs_owner_error_stats.up.sql
Grendgi 562fad6f87
All checks were successful
CI / test (push) Successful in 23s
Build and Deploy / build-and-deploy (push) Successful in 24s
Group AI errors by owner service
2026-06-09 12:06:01 +03:00

4 lines
172 B
SQL

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';