twenty icon indicating copy to clipboard operation
twenty copied to clipboard

Fix redis connection

Open Weiko opened this issue 1 year ago • 0 comments

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

Weiko avatar Oct 22 '24 13:10 Weiko