mirror of
https://github.com/lingble/twenty.git
synced 2025-11-01 05:07:56 +00:00
Change messaging batch size and cron pattern (#6063)
Change messaging batch size and cron pattern to accelerate messages import
This commit is contained in:
@@ -19,7 +19,7 @@ export class MessagingFetchByBatchesService {
|
||||
messageIdsByBatch: string[][];
|
||||
batchResponses: AxiosResponse<any, any>[];
|
||||
}> {
|
||||
const batchLimit = 50;
|
||||
const batchLimit = 20;
|
||||
|
||||
let batchOffset = 0;
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ export class MessagingMessagesImportCronCommand extends CommandRunner {
|
||||
undefined,
|
||||
{
|
||||
repeat: {
|
||||
every: 5000,
|
||||
every: 10000,
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
@@ -1 +1 @@
|
||||
export const MESSAGING_GMAIL_USERS_MESSAGES_GET_BATCH_SIZE = 20;
|
||||
export const MESSAGING_GMAIL_USERS_MESSAGES_GET_BATCH_SIZE = 200;
|
||||
|
||||
Reference in New Issue
Block a user