perf(automation): 持久队列驱动并优化履约热路径
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user