gearman-plugin/src
James E. Blair 4556818799 Report exceptions while running the job to the client.
Don't catch any exceptions while running the job; instead, report
them back to the client (via a catch-all exception handler in
StartJobWorker).

If the worker raises an exception, unlock the node monitor, in case
the worker didn't get to the point where it would be unlocked.

This change has the side effect that if the gearman server disconnects
while the job is running, the worker should return from watching the
job run (as soon as it notices, currently up to 5 seconds).  This is
helpful in that it will be available to register with gearman again,
including sending CAN_DO packets.  But the node monitor will still
prevent it from scheduling a new job while the one it started earlier
is still running.

Change-Id: Ie01ef0f9e706d81452b189099e36242ab9967950
2013-06-14 15:23:07 -07:00
..
main Report exceptions while running the job to the client. 2013-06-14 15:23:07 -07:00
test/java/hudson/plugins/gearman Handle mutex scheduling from Gearman or Jenkins. 2013-06-13 12:42:51 -07:00