提交更新
This commit is contained in:
@@ -1498,12 +1498,26 @@ async function refreshTaskBatch() {
|
||||
saveTaskDetailsToStorage()
|
||||
await loadHistory()
|
||||
syncPollingIdsWithHistory()
|
||||
if (changed) await loadDashboard()
|
||||
if (changed) {
|
||||
await loadDashboard()
|
||||
void resumeLoopExecutionIfNeeded()
|
||||
}
|
||||
} catch {
|
||||
/* polling noise */
|
||||
}
|
||||
}
|
||||
|
||||
async function resumeLoopExecutionIfNeeded() {
|
||||
if (disposed || loopDispatching.value || !activeLoopRunId.value) return
|
||||
try {
|
||||
const loop = await syncActiveLoopRun()
|
||||
if (!loop || loop.status === 'SUCCESS' || loop.status === 'FAILED' || loop.status === 'STOPPED') return
|
||||
await runLoopExecution(loop.id)
|
||||
} catch {
|
||||
/* loop recovery noise */
|
||||
}
|
||||
}
|
||||
|
||||
function scheduleNextPoll(immediate = false) {
|
||||
if (disposed) return
|
||||
if (pollTimer.value) {
|
||||
|
||||
Reference in New Issue
Block a user