Skip to content

Commit 335321f

Browse files
committed
Pause ops auto-refresh during bulk actions
1 parent 52ed585 commit 335321f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

frontend/src/pages/OpsPage.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,6 +1381,7 @@ export function OpsPage() {
13811381
if (autoRefreshSeconds === 0 || !isPageVisible) return;
13821382
const timer = window.setInterval(() => {
13831383
if (isRefreshing || isClaimRunning || isActionRunning || isLockRenewing || lockRenewInFlightRef.current) return;
1384+
if (isDownloadRunning || isBulkRunning) return;
13841385
if (Date.now() < autoRefreshPausedUntilMs) return;
13851386
void refresh({ source: "auto" }).then((res) => {
13861387
if (res.ok) {
@@ -1401,6 +1402,8 @@ export function OpsPage() {
14011402
autoRefreshSeconds,
14021403
isActionRunning,
14031404
isClaimRunning,
1405+
isBulkRunning,
1406+
isDownloadRunning,
14041407
isLockRenewing,
14051408
isPageVisible,
14061409
isRefreshing,

0 commit comments

Comments
 (0)