Skip to content

Commit d6a78ca

Browse files
committed
improve comment
1 parent c5abed3 commit d6a78ca

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

apps/sim/lib/core/async-jobs/config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,18 @@ export async function getInlineJobQueue(): Promise<JobQueueBackend> {
8282
}
8383

8484
const redis = getRedisClient()
85+
let type: string
8586
if (redis) {
8687
const { RedisJobQueue } = await import('@/lib/core/async-jobs/backends/redis')
8788
cachedInlineBackend = new RedisJobQueue(redis)
89+
type = 'redis'
8890
} else {
8991
const { DatabaseJobQueue } = await import('@/lib/core/async-jobs/backends/database')
9092
cachedInlineBackend = new DatabaseJobQueue()
93+
type = 'database'
9194
}
9295

93-
logger.info(
94-
`Inline job backend initialized: ${cachedInlineBackend ? 'redis or database' : 'none'}`
95-
)
96+
logger.info(`Inline job backend initialized: ${type}`)
9697
return cachedInlineBackend
9798
}
9899

0 commit comments

Comments
 (0)