gresrun / jesque

An implementation of Resque in Java.
http://gresrun.github.io/jesque
Apache License 2.0
628 stars 131 forks source link

Worker existing on uncaught exception after 10 minutes of no connection #239

Open dvir-redis opened 1 year ago

dvir-redis commented 1 year ago

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 :) ...