mirror of
https://github.com/lingble/twenty.git
synced 2025-11-02 13:47:55 +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[][];
|
messageIdsByBatch: string[][];
|
||||||
batchResponses: AxiosResponse<any, any>[];
|
batchResponses: AxiosResponse<any, any>[];
|
||||||
}> {
|
}> {
|
||||||
const batchLimit = 50;
|
const batchLimit = 20;
|
||||||
|
|
||||||
let batchOffset = 0;
|
let batchOffset = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export class MessagingMessagesImportCronCommand extends CommandRunner {
|
|||||||
undefined,
|
undefined,
|
||||||
{
|
{
|
||||||
repeat: {
|
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