Open mfacar opened 5 months ago
This mostly will affect self hosted instances, as we DO have REDIS on all our production servers. Still, it would be great to have this solved. We could also simply add REDIS as a dependency?
This mostly will affect self hosted instances, as we DO have REDIS on all our production servers. Still, it would be great to have this solved. We could also simply add REDIS as a dependency?
I think so, adding Redis as a dependency for sure will be faster. Anyway, the alternative to prevent a selfhosting having an unused service, is calling Redis.createClient(redisUrl)
conditionally only when at least one external service has been configured.
Describe the bug
After running yarn hot for some time the application crashes with the message 'Redis connection in broken state: connection timeout exceeded.'
To Reproduce One of the cases to reproduce the error is:
Expected behavior The application should not crash if there are no external services configured, by removing the parts that try to load Redis when external services are not set. Redis has to be specified in the documentation when the external services are used.
Additional context One of the possible culprits could be ocrRoutes, who instantiates an ocrManager, which in turn creates a new TaskManager that calls
Redis.createClient(redisUrl)