Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
tamaina committed Jul 20, 2023
1 parent 3d213f1 commit dfd6b4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/backend/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ export type Mixin = {
mediaProxy: string;
externalMediaProxyEnabled: boolean;
videoThumbnailGenerator: string | null;
redis: RedisOptions;
redisForPubsub: RedisOptions;
redisForJobQueue: RedisOptions;
redis: RedisOptions & RedisOptionsSource;
redisForPubsub: RedisOptions & RedisOptionsSource;
redisForJobQueue: RedisOptions & RedisOptionsSource;
};

export type Config = Source & Mixin;
Expand Down
5 changes: 4 additions & 1 deletion packages/backend/src/queue/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export const QUEUE = {

export function baseQueueOptions(config: Config, queueName: typeof QUEUE[keyof typeof QUEUE]): Bull.QueueOptions {
return {
connection: config.redisForJobQueue,
connection: {
...config.redisForJobQueue,
keyPrefix: undefined
},
prefix: config.redisForJobQueue.prefix ? `${config.redisForJobQueue.prefix}:queue:${queueName}` : `queue:${queueName}`,
};
}

0 comments on commit dfd6b4f

Please sign in to comment.