Subject: | Gearman::Worker::work(on_complete) triggers not when complete. |
Date: | Mon, 11 Apr 2011 17:52:00 +0000 |
To: | "bug-Gearman [...] rt.cpan.org" <bug-Gearman [...] rt.cpan.org> |
From: | Elliott Carlson <carlson [...] celldivision.com> |
In Gearman::Worker 1.11 when calling the on_complete callback for the work() method it is actually triggered prior to sending any response.
It would be useful to have an actual trigger at the end of all communication to acknowledge that the process has full completed.
Current local workaround is to move $complete_cb->($jobhandle, $ret) if $complete_cb; at line 367 to a position after the unless statement
At line 373.