Giter Club home page Giter Club logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
The client and workers have a "timeout period." They will not try to reconnect 
for that period of time. This is an attempt to avoid wasting resources, trying 
to reconnect on every submission. Look into setting the lost connection policy 
(http://java-gearman-service.googlecode.com/svn/javadoc/org/gearman/GearmanJobSe
rverPool.html#setLostConnectionPolicy(org.gearman.GearmanLostConnectionPolicy)) 
and setting the reconnect period 
(http://java-gearman-service.googlecode.com/svn/javadoc/org/gearman/GearmanJobSe
rverPool.html#setReconnectPeriod(long, java.util.concurrent.TimeUnit))

I'm 98% sure this is working correctly. However, I'm going to do a little 
testing on this functionality tonight, just to see if I can reproduce anything. 
If you could attach some source, it would be greatly appreciated.

Original comment by [email protected] on 7 Mar 2012 at 7:14

from java-gearman-service.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
The links did not turn out correctly...

Look into the following methods:

Setting the lost connection policy:
GearmanWorker#setLostConnectionPolicy(GearmanLostConnectionPolicy policy)
GearmanClient#setLostConnectionPolicy(GearmanLostConnectionPolicy policy)

Setting the default reconnect period:
GearmanWorker#setReconnectPeriod(long time, TimeUnit unit)
GearmanClient#setReconnectPeriod(long time, TimeUnit unit)

Original comment by [email protected] on 7 Mar 2012 at 7:17

from java-gearman-service.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
I'm able to reproduce this issue. I'll try to get a fix out as soon as possible.

Original comment by [email protected] on 8 Mar 2012 at 4:11

  • Changed state: Accepted

from java-gearman-service.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
This issue was closed by revision r93.

Original comment by [email protected] on 8 Mar 2012 at 7:00

  • Changed state: Fixed

from java-gearman-service.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
I've just released v0.5.2. Give that a shot, and please let me know if you find 
any more issues.


Thanks, omry. I appreciate you bringing this issue to my attention :)

Original comment by [email protected] on 8 Mar 2012 at 7:10

from java-gearman-service.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
going to try that out just now :).
thanks!

I will keep testing, but I`m likely to switch over anyway as it seems that you 
are actually developing this, unlike the owner of the other project which 
kinda' gave up.

Original comment by [email protected] on 8 Mar 2012 at 9:18

from java-gearman-service.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
Okay, now I consistently getting the correct error in my  GearmanSubmitHandler 
:FAILED_TO_CONNECT

you mentioned the reconnect policy.
does that apply to workers AND clients?
because you said clients should reconnect automatically, but I don't think its 
the behavior I am seeing.
if I am not trying to re-submit the job, I am seeing a single 
FAILED_TO_CONNECT, and then nothing.

Original comment by [email protected] on 8 Mar 2012 at 9:32

from java-gearman-service.

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.