Group AI errors by owner service
This commit is contained in:
1
migrations/006_ai_jobs_owner_error_stats.down.sql
Normal file
1
migrations/006_ai_jobs_owner_error_stats.down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP INDEX IF EXISTS ai_jobs_owner_error_stats_idx;
|
||||
3
migrations/006_ai_jobs_owner_error_stats.up.sql
Normal file
3
migrations/006_ai_jobs_owner_error_stats.up.sql
Normal 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';
|
||||
Reference in New Issue
Block a user