feat: call processGoogleSheetUpdates()
This commit is contained in:
@@ -8,6 +8,7 @@ import { readFile, saveFile } from "../storage";
|
||||
import { createRemoteBrowserForRun, destroyRemoteBrowser } from '../../browser-management/controller';
|
||||
import logger from '../../logger';
|
||||
import { browserPool } from "../../server";
|
||||
import { googleSheetUpdateTasks, processGoogleSheetUpdates } from "../integrations/gsheet";
|
||||
|
||||
const connection = new IORedis({
|
||||
host: 'localhost',
|
||||
@@ -153,7 +154,13 @@ async function executeRun(fileName: string, runId: string) {
|
||||
`../storage/runs/${fileName}_${runId}.json`,
|
||||
JSON.stringify(updated_run_meta, null, 2)
|
||||
);
|
||||
|
||||
googleSheetUpdateTasks[runId] = {
|
||||
name: parsedRun.name,
|
||||
runId: runId,
|
||||
status: 'pending',
|
||||
retries: 5,
|
||||
};
|
||||
processGoogleSheetUpdates();
|
||||
return true;
|
||||
} catch (error: any) {
|
||||
logger.log('info', `Error while running a recording with name: ${fileName}_${runId}.json`);
|
||||
|
||||
Reference in New Issue
Block a user