Subject: | Documentation Gearman::Worker wrong/misleading |
The docs say
Show quoted text
> Do one job and returns (no value returned).
This is not true. There is a while (1) loop which is not left
unless a "stop_if" methods is called. But this is never documented.
Actually these callbacks are accepted according to the code:
my $stop_if = delete $opts{'stop_if'} || sub { 0 };
my $complete_cb = delete $opts{on_complete};
my $fail_cb = delete $opts{on_fail};
my $start_cb = delete $opts{on_start};