Git Product home page Git Product logo

Comments (6)

sonus21 avatar sonus21 commented on July 19, 2024

Thanks for reporting the bug, what did you mean by "Cut the worker" and "Restart the worker"? Worker would be started automatically unless I'm missing something. If you shutdown your application during execution than the said message would come back to queue once visibility timeout has expired.

from rqueue.

sonus21 avatar sonus21 commented on July 19, 2024

Screenshot 2020-12-18 at 8 27 08 AM

https://javadoc.io/doc/com.github.sonus21/rqueue-core/latest/com/github/sonus21/rqueue/annotation/RqueueListener.html

from rqueue.

AlexMog avatar AlexMog commented on July 19, 2024

Hello Sonus,
I have already played a little with the visibility timeout, but it seems to not work on my side (well, with a single-worker scenario anyway).

In my case, I am using Kubernetes, which restarts my pods containing my workers on new versions (its the intended workflow) and, when rebooted, event after the visibility timeout is expired, the job is never re-added to the queue, which means that the jobs seems to be completely lost in my case

Regards

from rqueue.

sonus21 avatar sonus21 commented on July 19, 2024

That's strange, if you have dashboard access please check dashboard, it is available at host/rqueue, it does not require any authentication you're supposed to protect dashboard from evils.

If you don't have access to dashboard, please run these commands to see if entries exist in Redis.

LRANGE __rq::queue::{<queueName>} 0 -1
ZRANGE __rq::d-queue::{<queueName>} 0 -1
ZRANGE __rq::p-queue::{<queueName>} 0 -1

For example if your queue name is test-queue then you need to run following set of commands

LRANGE __rq::queue::{test-queue} 0 -1
ZRANGE __rq::d-queue::{test-queue} 0 -1
ZRANGE __rq::p-queue::{test-queue} 0 -1

from rqueue.

sonus21 avatar sonus21 commented on July 19, 2024

This test verifies this feature

protected void verifyMultipleJobExecution() throws TimedOutException {

It only verifies for continuous polling not shutdown and boostrap

from rqueue.

sonus21 avatar sonus21 commented on July 19, 2024

Hi Alex
This does not seem to be a Rqueue bug, closing this. Please feel free to open this bug if you have more details or you can provide a reproducible code snippet.

from rqueue.

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.