mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-14 11:06:13 +05:00
Revert "Prevent overlapping live progress requests"
This reverts commit 848a4bea10.
This commit is contained in:
parent
848a4bea10
commit
e530c4e9d7
@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -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):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user