jesque icon indicating copy to clipboard operation
jesque copied to clipboard

Worker existing on uncaught exception after 10 minutes of no connection

Open dvir-redis opened this issue 2 years ago • 0 comments

Hi, After 10 minutes (BTW - non configurable) of no connection to Redis server https://github.com/gresrun/jesque/blob/c6653eda6d3c3b7ef03ad5c7612dce987170e62e/src/main/java/net/greghaines/jesque/worker/WorkerImpl.java#L66

The worker process is terminated with uncaught exception
https://github.com/gresrun/jesque/blob/c6653eda6d3c3b7ef03ad5c7612dce987170e62e/src/main/java/net/greghaines/jesque/worker/WorkerImpl.java#L227 when trying to reach Redis in the finally block after poll() method ended with shutdown request. Jedis is not connected and throwing uncaught error. Not sure that this is the expected behavior, however I guess the outcome is the same :) ...

dvir-redis avatar Dec 15 '22 10:12 dvir-redis