feat: export processGoogleSheetUpdates()
This commit is contained in:
@@ -94,7 +94,7 @@ export async function writeDataToSheet(fileName: string, spreadsheetId: string,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const processGoogleSheetUpdates = async () => {
|
export const processGoogleSheetUpdates = async () => {
|
||||||
while (true) {
|
while (true) {
|
||||||
let hasPendingTasks = false;
|
let hasPendingTasks = false;
|
||||||
for (const runId in googleSheetUpdateTasks) {
|
for (const runId in googleSheetUpdateTasks) {
|
||||||
@@ -123,8 +123,3 @@ const processGoogleSheetUpdates = async () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export const startProcessGoogleSheetUpdates = () => {
|
|
||||||
if (Object.keys(googleSheetUpdateTasks).length > 0) {
|
|
||||||
processGoogleSheetUpdates();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
Reference in New Issue
Block a user