TRUEREF-0022 fix, more tests
This commit is contained in:
6
src/lib/server/db/migrations/0005_fix_stage_defaults.sql
Normal file
6
src/lib/server/db/migrations/0005_fix_stage_defaults.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
-- Backfill stage column for historical jobs whose stage was frozen at 'queued'
|
||||
-- by the DEFAULT in migration 0004. Jobs that completed or failed before
|
||||
-- TRUEREF-0022 never received stage updates via the worker thread, so their
|
||||
-- stage column reflects the migration default rather than actual progress.
|
||||
UPDATE indexing_jobs SET stage = 'done' WHERE status = 'done' AND stage = 'queued';--> statement-breakpoint
|
||||
UPDATE indexing_jobs SET stage = 'failed' WHERE status = 'failed' AND stage = 'queued';
|
||||
@@ -36,6 +36,13 @@
|
||||
"when": 1774880275833,
|
||||
"tag": "0004_complete_sentry",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 5,
|
||||
"version": "6",
|
||||
"when": 1774890536284,
|
||||
"tag": "0005_fix_stage_defaults",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user