gearman-go
gearman-go copied to clipboard
Ability to exit work loop gracefully
In order to gracefully remove a worker, there needs to be a way to stop asking for more work. Other language libraries have this functionality, e.g.
- PHP has a
$monitorcallback: https://github.com/brianlmoon/net_gearman/blob/master/Net/Gearman/Worker.php. The - Perl has a
stop_ifcallback: https://github.com/gearman/perl-Gearman-Client/blob/master/t/worker.pl