fix: cluster worker config issues

This commit is contained in:
jialin
2025-12-18 17:29:07 +08:00
parent e83bff6923
commit 78368e9979
21 changed files with 112 additions and 43 deletions
@@ -25,7 +25,6 @@ export default function useAddWorkerMessage() {
onCreate: (newItems: any) => {
if (startWatchRef.current) {
newItemsRef.current = newItemsRef.current.concat(newItems);
console.log('newItemsRef.current:', newItemsRef.current);
showAddWorkerMessage();
}
}
@@ -48,13 +47,13 @@ export default function useAddWorkerMessage() {
chunkRequestRef.current?.current?.cancel?.();
resetAddedCount();
try {
chunkRequestRef.current = await setChunkRequest({
chunkRequestRef.current = setChunkRequest({
url: WORKERS_API,
handler: updateHandler
});
timerRef.current = setTimeout(() => {
startWatchRef.current = true;
}, 1000);
}, 5000);
} catch (error) {
// ignore
}