gearman/java-service

Workers can not have the server requeue a job with another worker

Opened this issue · 1 comments

According to https://groups.google.com/d/msg/gearman/5qISg9rwStw/pjKUgR5KE5QJ it should be possible for a worker to produce a GEARMAN_ERROR(?) which has the gearman server requeue the job with another worker. I cannot figure out how to do this with this Java library, if at all possible (besides System.exit which is not acceptable for me).

Futhermore clients do not get notified when a job has failed and been restarted on a new worker. I do not know if that is supposed to be possible, but in my case it was noticeable since duplicate data was received within one job's execution.

I had a similar issue too, I have a Java worker, a PHP client, how do I retry a failed job from Java worker?