Comments (2)
After a test, I got the answer!
Sidekiq Client
irb(main):002:0> LazyWorker.perform_async 1, 1
=> "5ad101f1c2e7a8342c5be6da"
irb(main):003:0> LazyWorker.perform_async 1, 1
=> nil
irb(main):004:0> LazyWorker.perform_async 1, 2
=> "920d6e6e357c423bddc4088a"
The Redis Log
127.0.0.1:6379[1]> keys *
1) "test:queue:default"
2) "test:queues"
3) "test:sidekiq_unique:1daeaf93b1a9b8c152a7dc40b977bb18"
127.0.0.1:6379[1]> keys *
1) "test:queue:default"
2) "test:queues"
3) "test:sidekiq_unique:a79c7aa2db1706c2c4d29140d2d6d52d"
4) "test:sidekiq_unique:1daeaf93b1a9b8c152a7dc40b977bb18"
127.0.0.1:6379[1]> keys *
1) "test:queue:default"
2) "test:queues"
3) "test:sidekiq_unique:a79c7aa2db1706c2c4d29140d2d6d52d"
4) "test:sidekiq_unique:1daeaf93b1a9b8c152a7dc40b977bb18"
Is it possible to auto requeue the No.3
job onto the queue after the No.1
completed ?
from sidekiq-unique-jobs.
The whole Idea of the gem was to only allow unique jobs to be scheduled if a duplicate was allowed to be scheduled in the future then it isn't uniqueness anymore.
Is it possible you could tweak your unique_args and take some time constraint into consideration? It could also be possible that you are in fact looking for some type of scheduler? I don't see how else the gem could help you here.
from sidekiq-unique-jobs.
Related Issues (20)
- Large retry queue causes reaper to run too slow HOT 3
- 8.0.1 Time on locks & changelog UI is incorrect/wrong HOT 5
- Jobs queued during existing job inherit lock digest HOT 1
- My configuration is correct or not. Because uniq job not remove all job process in sidekiq ?
- Redis server v6.0 compatibility HOT 4
- `while_executing` with `on_conflict: :reschedule` reschedules job when unlock fails HOT 7
- Problems with reaper and long running jobs HOT 11
- Migrate away from deprecated Redis commands HOT 2
- `unlocked` reflection is never called
- Logging::Middleware.context can include empty string as key when lock is not set in job hash HOT 1
- PRIMED key grows indefinitely when job re-queues itself in `after_unlock` callback HOT 1
- until_and_while_executing and lock_ttl: jobs silently dropped HOT 3
- incompatibility with sidekiq-failures HOT 4
- Deprecation Warning: Use of rpoplpush command in Redis HOT 1
- Redis has deprecated the `rpoplpush`command
- Release new gem version with "fix replace deprecated rpoplpush w/lmove" HOT 3
- `while_executing` with `on_conflict: :reschedule` Reschedule job after job execution HOT 7
- Reaper manager registration is subject to race conditions HOT 1
- Should client middleware also be added to the Sidekiq server config? HOT 2
- After sidekiq shutdown (with running job) lock digest is not pushned back HOT 8
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 sidekiq-unique-jobs.