summaryrefslogtreecommitdiff
path: root/packages/backend/src/queue
diff options
context:
space:
mode:
authortamaina <tamaina@hotmail.co.jp>2023-07-20 19:50:31 +0900
committerGitHub <noreply@github.com>2023-07-20 19:50:31 +0900
commit0a06eb27da747c22ff8403ba9bf9f1704eb65425 (patch)
tree9bf1b6a77f57d0d0208f4a79effea3eb874915c5 /packages/backend/src/queue
parentrefactor(frontend): use nodemon for storybook (#11297) (diff)
downloadsharkey-0a06eb27da747c22ff8403ba9bf9f1704eb65425.tar.gz
sharkey-0a06eb27da747c22ff8403ba9bf9f1704eb65425.tar.bz2
sharkey-0a06eb27da747c22ff8403ba9bf9f1704eb65425.zip
enhance(backend): 設定ファイルでioredisの全てのオプションを指定可能に (#11329)
* enhance(backend): 設定ファイルでioredisの全てのオプションを指定可能に * yappa kousuru * fix * fix? * fix * Revert "fix" This reverts commit 227f19ff3afcbbd560b831493975206263a1a5a3. * fix
Diffstat (limited to 'packages/backend/src/queue')
-rw-r--r--packages/backend/src/queue/const.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/packages/backend/src/queue/const.ts b/packages/backend/src/queue/const.ts
index d240fe70e0..d49951a1c3 100644
--- a/packages/backend/src/queue/const.ts
+++ b/packages/backend/src/queue/const.ts
@@ -15,11 +15,8 @@ export const QUEUE = {
export function baseQueueOptions(config: Config, queueName: typeof QUEUE[keyof typeof QUEUE]): Bull.QueueOptions {
return {
connection: {
- port: config.redisForJobQueue.port,
- host: config.redisForJobQueue.host,
- family: config.redisForJobQueue.family == null ? 0 : config.redisForJobQueue.family,
- password: config.redisForJobQueue.pass,
- db: config.redisForJobQueue.db ?? 0,
+ ...config.redisForJobQueue,
+ keyPrefix: undefined
},
prefix: config.redisForJobQueue.prefix ? `${config.redisForJobQueue.prefix}:queue:${queueName}` : `queue:${queueName}`,
};