Closed akhushnazarov closed 1 week ago
Yep! You'll see, in each API, the methods take a redis client as an argument.
If each thread has it's own redis client, you can pass the different redis clients as arguments.
Many of the redis clients are also thread safe, meaning you can share a client between threads.
Which language(s) are you using?
Sorry forgot to mention the language. I am using python.
Yes, the methods on the WorkQueue
class itself don't mutate the state of the class, and, according to redis-py > Advanced Features
, the redis client is also thread safe.
can i run workers in multiple threads ?