Giter Club home page Giter Club logo

Comments (2)

justqyx avatar justqyx commented on August 17, 2024

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.

mhenrixon avatar mhenrixon commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.