The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Change messaging batch size and cron pattern (#6063)
bosiraphaeld1bb0fb82221
diff --git a/packages/twenty-server/src/modules/messaging/common/services/messaging-fetch-by-batch.service.ts b/packages/twenty-server/src/modules/messaging/common/services/messaging-fetch-by-batch.service.tsindex 0af4b578e85..978850bb962 100644--- a/packages/twenty-server/src/modules/messaging/common/services/messaging-fetch-by-batch.service.ts+++ b/packages/twenty-server/src/modules/messaging/common/services/messaging-fetch-by-batch.service.ts@@ -19,7 +19,7 @@ export class MessagingFetchByBatchesService {messageIdsByBatch: string[][];batchResponses: AxiosResponse<any, any>[];}> {- const batchLimit = 50;+ const batchLimit = 20;let batchOffset = 0;diff --git a/packages/twenty-server/src/modules/messaging/message-import-manager/crons/commands/messaging-messages-import.cron.command.ts b/packages/twenty-server/src/modules/messaging/message-import-manager/crons/commands/messaging-messages-import.cron.command.tsindex 4e878d75f59..d61c871f79a 100644--- a/packages/twenty-server/src/modules/messaging/message-import-manager/crons/commands/messaging-messages-import.cron.command.ts+++ b/packages/twenty-server/src/modules/messaging/message-import-manager/crons/commands/messaging-messages-import.cron.command.ts@@ -23,7 +23,7 @@ export class MessagingMessagesImportCronCommand extends CommandRunner {undefined,{repeat: {- every: 5000,+ every: 10000,},},);diff --git a/packages/twenty-server/src/modules/messaging/message-import-manager/drivers/gmail/constants/messaging-gmail-users-messages-get-batch-size.constant.ts b/packages/twenty-server/src/modules/messaging/message-import-manager/drivers/gmail/constants/messaging-gmail-users-messages-get-batch-size.constant.tsindex 81255f38374..dc89d1a32bc 100644--- a/packages/twenty-server/src/modules/messaging/message-import-manager/drivers/gmail/constants/messaging-gmail-users-messages-get-batch-size.constant.ts+++ b/packages/twenty-server/src/modules/messaging/message-import-manager/drivers/gmail/constants/messaging-gmail-users-messages-get-batch-size.constant.ts@@ -1 +1 @@-export const MESSAGING_GMAIL_USERS_MESSAGES_GET_BATCH_SIZE = 20;+export const MESSAGING_GMAIL_USERS_MESSAGES_GET_BATCH_SIZE = 200;