|
|
|
|
@ -150,7 +150,7 @@ async function consumeSyncData() {
|
|
|
|
|
const nonProcessedSyncRows = allSyncRows.filter(sync => !processedEntityChangeIds.has(sync.id));
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
await utils.timeLimit(processSyncRows(nonProcessedSyncRows), 5000);
|
|
|
|
|
await utils.timeLimit(processSyncRows(nonProcessedSyncRows), 15000);
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
logError(`Encountered error ${e.message}: ${e.stack}, reloading frontend.`);
|
|
|
|
|
@ -161,7 +161,9 @@ async function consumeSyncData() {
|
|
|
|
|
utils.reloadApp();
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
alert("Encountered error, check out the console.");
|
|
|
|
|
console.log("nonProcessedSyncRows causing the timeout", nonProcessedSyncRows);
|
|
|
|
|
|
|
|
|
|
alert(`Encountered error "${e.message}", check out the console.`);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|