Skip to content

Commit

Permalink
Set max retries to null for redis connection
Browse files Browse the repository at this point in the history
  • Loading branch information
parzival418 committed Dec 22, 2023
1 parent d19ed70 commit 4bb0940
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/server/core/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ export async function initApp(environment: Environment = 'default') {
await next()
})

// Initialize pubsub redis client
const pubsub = new RedisPubSub()
// sync up messages between the app and the runner
logger.info('SETTING UP REDIS')
app.configure(
Expand All @@ -118,13 +116,15 @@ export async function initApp(environment: Environment = 'default') {
})
)

await pubsub.initialize({
url: REDISCLOUD_URL,
})
// Initialize pubsub redis client
const pubsub = new RedisPubSub()
await pubsub.initialize(REDISCLOUD_URL)

app.set('pubsub', pubsub)

const redis = new Redis(REDISCLOUD_URL)
const redis = new Redis(REDISCLOUD_URL, {
maxRetriesPerRequest: null,
})
app.set('redis', redis)

// Configure app spell management settings
Expand Down

0 comments on commit 4bb0940

Please sign in to comment.