Change messaging batch size and cron pattern (#6063)

Change messaging batch size and cron pattern to accelerate messages
import
This commit is contained in:
bosiraphael
2024-06-27 16:23:47 +02:00
committed by GitHub
parent ac7d905c84
commit d1bb0fb822
3 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ export class MessagingFetchByBatchesService {
messageIdsByBatch: string[][];
batchResponses: AxiosResponse<any, any>[];
}> {
const batchLimit = 50;
const batchLimit = 20;
let batchOffset = 0;

View File

@@ -23,7 +23,7 @@ export class MessagingMessagesImportCronCommand extends CommandRunner {
undefined,
{
repeat: {
every: 5000,
every: 10000,
},
},
);

View File

@@ -1 +1 @@
export const MESSAGING_GMAIL_USERS_MESSAGES_GET_BATCH_SIZE = 20;
export const MESSAGING_GMAIL_USERS_MESSAGES_GET_BATCH_SIZE = 200;