Comments (4)
Ah, yep. Supporting a namespace would be great.
There are only three redis keys per queue that go-workers touches:
- the queue list, key name generated here:
Line 87 in 481c95d
- retry sorted set, which is currently a constant:
Line 13 in 481c95d
- inprogress list used with brpoplpush:
Line 114 in 9e0a6c7
I could see a config option which allows a namespace to be defined, and then some mechanism which applies the namespace to the keys above.
If you want to give it a... go, then it'd be much appreciated! If not, I can take a crack at it a bit later.
Thanks!
from go-workers.
All the arguments need to be namespaced too, an alternative might be to wrap the conn
and expose a strongly typed API which knows how to apply a namespace... we could just expose the functions we need.
from go-workers.
Humm, which arguments other than the keys would you need to namespace? I believe it's just the keys (which is all redis-namespace does for the operations you listed).
There's room for a more general redis namespacing library in the golang ecosystem, but in this case, with how stable the sidekiq api is, I doubt this library would benefit from that extra complexity. I could be wrong...
from go-workers.
zrangebyscore
requires all arguments except the last one to be namespaced. I agree that extra complexity isn't needed.
from go-workers.
Related Issues (20)
- Pass Redis connection Configure
- queue is not FIFO, but LIFO actually.. HOT 1
- Excessive file descriptors? HOT 2
- gospec moved to github.com/customerio/gospec/src/gospec
- What's the meaning of "Class" property in EnqueueData? HOT 3
- How to use enqueue_in (from ruby TO go) HOT 1
- Configuring multiple REDIS servers HOT 3
- Retry options HOT 2
- Application server concurrency HOT 4
- need more guides HOT 1
- Scheduled jobs being "lost" HOT 2
- Run jobs synchronously
- Retry Jobs Not Showing in Sidekiq Retry List in Web UI HOT 1
- Contributors HOT 3
- Monitoring worker
- Enqueue using a Redis pipeline?
- EnqueueIn and EnqueueWithOptions with At
- ActiveJob Issues
- Error & Retry
- question: support for go modules
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-workers.