Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Gearman CPAN distribution.

Report information
The Basics
Id: 67385
Status: resolved
Priority: 0/
Queue: Gearman

People
Owner: info [...] maximka.de
Requestors: carlson [...] celldivision.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.130.001



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.
Actually depending on $ret value will be called complete cb or fail cb. Referred to the suggestion execution of both fail cb and complete cb will be possible. How ever the suggestion will be reviewed.
if you haven't any objections I'll set the issue status to resolved
done