perf(automation): 持久队列驱动并优化履约热路径

This commit is contained in:
yml
2026-11-23 15:07:31 +08:00
parent 11c2a0dba7
commit 2549511598
31 changed files with 1658 additions and 235 deletions
@@ -474,7 +474,7 @@ export default function PlatformFulfillmentPage() {
useEffect(() => {
const timer = window.setInterval(() => {
if (document.visibilityState === 'visible') void loadTasks(true);
}, 5000);
}, 10000);
return () => window.clearInterval(timer);
}, [loadTasks]);
@@ -493,7 +493,7 @@ export default function PlatformFulfillmentPage() {
if (!selectedId) return;
const timer = window.setInterval(() => {
if (document.visibilityState === 'visible') void loadDetail(selectedId, true);
}, 3000);
}, 5000);
return () => window.clearInterval(timer);
}, [loadDetail, selectedId]);
@@ -511,7 +511,7 @@ export default function PlatformFulfillmentPage() {
void loadActionTask();
const timer = window.setInterval(() => {
if (document.visibilityState === 'visible') void loadActionTask();
}, 2000);
}, 3000);
return () => {
stopped = true;
window.clearInterval(timer);