From e530c4e9d708d656b83e092470c1853807a87f76 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Wed, 12 Aug 2026 15:37:49 -0700 Subject: [PATCH] Revert "Prevent overlapping live progress requests" This reverts commit 848a4bea10a1a12f5b2c4c0cb65bd8c47e16533b. --- .../templates/progressmonitor/progress_monitor.html | 6 ------ archivebox/tests/test_ui_admin_snapshot.py | 2 -- 2 files changed, 8 deletions(-) diff --git a/archivebox/progressmonitor/templates/progressmonitor/progress_monitor.html b/archivebox/progressmonitor/templates/progressmonitor/progress_monitor.html index fee70f46..488661a5 100644 --- a/archivebox/progressmonitor/templates/progressmonitor/progress_monitor.html +++ b/archivebox/progressmonitor/templates/progressmonitor/progress_monitor.html @@ -1018,7 +1018,6 @@ let pollInterval = null; let pollDelayMs = 1000; - let progressFetchInFlight = false; let idleTicks = 0; let isCollapsed = monitor.dataset.autoExpand !== '1'; const snapshotMedia = new Map(); @@ -1807,8 +1806,6 @@ const progressEndpoint = monitor.dataset.progressEndpoint || '/progress.json'; function fetchProgress() { - if (progressFetchInFlight) return; - progressFetchInFlight = true; fetch(progressEndpoint, { credentials: 'same-origin' }) .then(response => { if (!response.ok) throw new Error(`HTTP ${response.status}`); @@ -1830,9 +1827,6 @@ setOrchestratorState('error', 'Backend not responding'); idleMessage.textContent = 'Fetch Error: ' + error.message; idleMessage.style.color = '#f85149'; - }) - .finally(() => { - progressFetchInFlight = false; }); } diff --git a/archivebox/tests/test_ui_admin_snapshot.py b/archivebox/tests/test_ui_admin_snapshot.py index 663a88d2..3d0dcde2 100644 --- a/archivebox/tests/test_ui_admin_snapshot.py +++ b/archivebox/tests/test_ui_admin_snapshot.py @@ -132,8 +132,6 @@ def test_snapshot_changelist_uses_stable_ordering_without_unordered_paginator_wa assert response.context["cl"].queryset.query.order_by[0] == "-created_at" assert b"archivebox-search-stream-status" in response.content assert b"Searching matching snapshots..." in response.content - assert b"if (progressFetchInFlight) return" in response.content - assert b"progressFetchInFlight = false" in response.content def test_snapshot_changelist_preview_uses_prefetched_output_files(admin_client, snapshot, real_hash_projection):