RichardKnop / machinery

Machinery is an asynchronous task queue/job queue based on distributed message passing.
Mozilla Public License 2.0
7.52k stars 914 forks source link

Support Redis cluster with single endpoint configuration #801

Closed vincentluan closed 6 months ago

vincentluan commented 8 months ago

With Redis cluster configurations that have only one endpoint (AWS ElastiCache for example), the go-redis UniversalClient will create Client object, not ClusterClient, which will not be able to execute commands on cluster nodes.

This pull request added ClusterEnabled config in RedisConfig struct to enable configuring support for Redis cluster specifically.