feat: add integration error handling

This commit is contained in:
Rohit Rajan
2025-09-28 22:34:31 +05:30
parent d2e0324312
commit 0f759170e7
3 changed files with 6 additions and 6 deletions

View File

@@ -710,8 +710,8 @@ async function executeRun(id: string, userId: string) {
retries: 5,
};
processAirtableUpdates();
processGoogleSheetUpdates();
processAirtableUpdates().catch(err => logger.log('error', `Airtable update error: ${err.message}`));
processGoogleSheetUpdates().catch(err => logger.log('error', `Google Sheets update error: ${err.message}`));
} catch (err: any) {
logger.log('error', `Failed to update Google Sheet for run: ${plainRun.runId}: ${err.message}`);
}

View File

@@ -102,8 +102,8 @@ async function triggerIntegrationUpdates(runId: string, robotMetaId: string): Pr
retries: 5,
};
processAirtableUpdates();
processGoogleSheetUpdates();
processAirtableUpdates().catch(err => logger.log('error', `Airtable update error: ${err.message}`));
processGoogleSheetUpdates().catch(err => logger.log('error', `Google Sheets update error: ${err.message}`));
} catch (err: any) {
logger.log('error', `Failed to update integrations for run: ${runId}: ${err.message}`);
}

View File

@@ -277,8 +277,8 @@ async function executeRun(id: string, userId: string) {
retries: 5,
};
processAirtableUpdates();
processGoogleSheetUpdates();
processAirtableUpdates().catch(err => logger.log('error', `Airtable update error: ${err.message}`));
processGoogleSheetUpdates().catch(err => logger.log('error', `Google Sheets update error: ${err.message}`));
} catch (err: any) {
logger.log('error', `Failed to update Google Sheet for run: ${plainRun.runId}: ${err.message}`);
}