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.
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.