MeVitae / redis-work-queue

A cross-platform work queue, on top of a redis database, with implementations in Python, Rust, Go, Node.js (TypeScript) and Dotnet (C#).
MIT License
15 stars 2 forks source link

Is this thread safe ? #10

Open akhushnazarov opened 1 month ago

akhushnazarov commented 1 month ago

can i run workers in multiple threads ?

JOT85 commented 1 month 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?

akhushnazarov commented 3 weeks ago

Sorry forgot to mention the language. I am using python.