From 5cf415d38a17a100e190099e4b3c1cfc8f1d4a36 Mon Sep 17 00:00:00 2001 From: Paul Huliganga Date: Tue, 21 Apr 2026 14:26:28 -0400 Subject: [PATCH] fix(migration): stop polling when job status is 'completed' Backend returns "completed" but pollJob only checked "done"/"complete", causing infinite polling and oscillating UI state. Co-Authored-By: Claude Sonnet 4.6 --- web/static/js/migration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/static/js/migration.js b/web/static/js/migration.js index 6afaa86..47fe536 100644 --- a/web/static/js/migration.js +++ b/web/static/js/migration.js @@ -207,7 +207,7 @@ export async function pollJob(jobId, onProgress) { const data = await api.migrate.batchStatus(jobId); if (onProgress) onProgress(data); - if (data.status === 'done' || data.status === 'complete') { + if (data.status === 'done' || data.status === 'complete' || data.status === 'completed') { setState('lastMigrationResults', data); resolve(data); } else if (data.status === 'failed') {