Fix bull-mq retry option and exceptions not being captured for jobs (#3905)
* Fix bull-mq retry option * fix exception inside worker * add logs * fix after review
This commit is contained in:
@ -75,7 +75,6 @@ export class GmailFullSyncCommand extends CommandRunner {
|
||||
connectedAccountId: connectedAccount.id,
|
||||
},
|
||||
{
|
||||
id: `${workspaceId}-${connectedAccount.id}`,
|
||||
retryLimit: 2,
|
||||
},
|
||||
);
|
||||
|
||||
@ -75,7 +75,6 @@ export class GmailPartialSyncCommand extends CommandRunner {
|
||||
connectedAccountId: connectedAccount.id,
|
||||
},
|
||||
{
|
||||
id: `${workspaceId}-${connectedAccount.id}`,
|
||||
retryLimit: 2,
|
||||
},
|
||||
);
|
||||
|
||||
@ -37,13 +37,6 @@ export class MessagingPersonListener {
|
||||
|
||||
@OnEvent('person.updated')
|
||||
handleUpdatedEvent(payload: ObjectRecordUpdateEvent<PersonObjectMetadata>) {
|
||||
console.log(
|
||||
objectRecordUpdateEventChangedProperties(
|
||||
payload.previousRecord,
|
||||
payload.updatedRecord,
|
||||
),
|
||||
);
|
||||
|
||||
if (
|
||||
objectRecordUpdateEventChangedProperties(
|
||||
payload.previousRecord,
|
||||
|
||||
@ -109,6 +109,10 @@ export class GmailFullSyncService {
|
||||
);
|
||||
|
||||
if (messagesToSave.length === 0) {
|
||||
this.logger.log(
|
||||
`gmail full-sync for workspace ${workspaceId} and account ${connectedAccountId} done with nothing to import.`,
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user