twenty
twenty copied to clipboard
Fix redis connection
Context
bull-mq connection was not working as intended, the connection parameter was ignored and was falling back to localhost. This PR should fix the issue by instantiating a IORedis client following bullmq documentation https://docs.bullmq.io/guide/connections I also changed cache-storage module to use IORedis client as well to be more consistent even though it was not necessary there. We could move that instantiation to a factory class in the future.
Test
start server + worker with correct port and wrong port with cache-storage-type memory/redis and queue-type sync/bull-mq