gearman-plugin/src/main/java/hudson/plugins/gearman
James E. Blair 0b017fe95d Rework when GRAB_JOB is sent.
* Send GRAB_JOB after NO_OP.
* Send GRAB_JOB after initial setup to start the event-state system.
* Don't send GRAB_JOB after changing the functions.  The gearman server will
  maintain the existing state of the connection if functions change, so if
  we are sleeping, we will still get appropriate NOOP messages even after
  changing functions.
* Don't send GRAB_JOB when the task queue is empty.  The event-state system
  should send it when necessary.
* Send GRAB_JOB after job completion (to restart the event-state system).

Fixes 1183454.

Also fixes cases where we would end up grabbing multiple jobs in one cycle.

Change-Id: I36a890711ecdfef62a6554bac820acf0ca8b5f5b
2013-05-24 16:55:38 -07:00
..
example add example java client 2013-03-19 10:56:41 -07:00
AbstractWorkerThread.java Add local GearmanWorker. 2013-04-22 10:29:03 -07:00
ComputerListenerImpl.java fix for bug 1162887 2013-05-01 10:20:45 -07:00
Constants.java fix for bug 1162887 2013-05-01 10:20:45 -07:00
CustomGearmanFunctionFactory.java Reference jenkins master in workers. 2013-04-29 13:25:58 -07:00
ExecutorWorkerThread.java Reference jenkins master in workers. 2013-04-29 13:25:58 -07:00
GearmanPluginConfig.java fix for bug 1162887 2013-05-01 10:20:45 -07:00
GearmanPluginUtil.java fix executor names, clean up, remove code duplication 2013-03-22 15:47:19 -07:00
GearmanProxy.java remove comment and use generic AbstractWorkerThread object. 2013-05-21 10:04:12 -07:00
ManagementWorkerThread.java add gearman worker to set build descriptions 2013-05-18 11:26:15 -07:00
MyGearmanWorkerImpl.java Rework when GRAB_JOB is sent. 2013-05-24 16:55:38 -07:00
NodeAssignmentAction.java Add comments, decouple build actions, and cancel jobs. 2013-02-08 15:56:31 -08:00
NodeParametersAction.java Add comments, decouple build actions, and cancel jobs. 2013-02-08 15:56:31 -08:00
SaveableListenerImpl.java fix for bug 1162887 2013-05-01 10:20:45 -07:00
SetDescriptionWorker.java add gearman worker to set build descriptions 2013-05-18 11:26:15 -07:00
StartJobWorker.java add gearman worker to set build descriptions 2013-05-18 11:26:15 -07:00
StopJobWorker.java Define a unique parameter for stop worker. 2013-04-29 17:34:58 -07:00