Deprecate message queue type (#10040)

Not removing all the code for now, maybe we should 🤔
This commit is contained in:
Félix Malfait
2025-02-06 16:06:54 +01:00
committed by GitHub
parent adc6dd5c07
commit f40d7e2ba8
16 changed files with 24 additions and 77 deletions

View File

@ -3,8 +3,6 @@ import {
BullMQDriverFactoryOptions,
MessageQueueDriverType,
MessageQueueModuleOptions,
PgBossDriverFactoryOptions,
SyncDriverFactoryOptions,
} from 'src/engine/core-modules/message-queue/interfaces';
import { RedisClientService } from 'src/engine/core-modules/redis-client/redis-client.service';
@ -17,9 +15,10 @@ export const messageQueueModuleFactory = async (
environmentService: EnvironmentService,
redisClientService: RedisClientService,
): Promise<MessageQueueModuleOptions> => {
const driverType = environmentService.get('MESSAGE_QUEUE_TYPE');
const driverType = MessageQueueDriverType.BullMQ;
switch (driverType) {
/*
case MessageQueueDriverType.Sync: {
return {
type: MessageQueueDriverType.Sync,
@ -35,7 +34,7 @@ export const messageQueueModuleFactory = async (
connectionString,
},
} satisfies PgBossDriverFactoryOptions;
}
}*/
case MessageQueueDriverType.BullMQ: {
return {
type: MessageQueueDriverType.BullMQ,