chore: Ensure Redis connection is ready with callback (#6924)
* chore(workflow-engine-redis): await for the connection callback * cleanup * cleanup * Create early-rice-marry.md * cleanup
This commit is contained in:
@@ -27,7 +27,9 @@ export default async ({
|
||||
})
|
||||
|
||||
try {
|
||||
await connection.connect()
|
||||
await new Promise(async resolve => {
|
||||
await connection.connect(resolve)
|
||||
})
|
||||
logger?.info(`Connection to Redis in module 'event-bus-redis' established`)
|
||||
} catch (err) {
|
||||
logger?.error(
|
||||
|
||||
Reference in New Issue
Block a user