File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
apps/sim/lib/core/async-jobs Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments