sni / mod_gearman

Distribute Naemon Host/Service Checks & Eventhandler with Gearman Queues. Host/Servicegroups affinity included.
http://www.mod-gearman.org
GNU General Public License v3.0
122 stars 42 forks source link

Testing async submission #19

Closed jayKayEss closed 13 years ago

jayKayEss commented 13 years ago

tl;dr I'm an engineer at Etsy, and we added the ability to test asynchronous job submission.

background: we use this check to trigger gearmand restarts, and basing a restart on a synchronous submission could result in constantly restarting gearmand when the workers are down. The async check is a better test for when the server needs to be restarted.

I also fixed a potential segfault on line 362 when result is null.

sni commented 13 years ago

Thanks, just merged your changes.