Revert "Prevent overlapping live progress requests"

This reverts commit 848a4bea10.
This commit is contained in:
Nick Sweeting 2026-08-12 15:37:49 -07:00
parent 848a4bea10
commit e530c4e9d7
No known key found for this signature in database
2 changed files with 0 additions and 8 deletions

View File

@ -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;
});
}

View File

@ -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):