gearman-go icon indicating copy to clipboard operation
gearman-go copied to clipboard

Ability to exit work loop gracefully

Open rgarcia opened this issue 11 years ago • 0 comments

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 $monitor callback: https://github.com/brianlmoon/net_gearman/blob/master/Net/Gearman/Worker.php. The
  • Perl has a stop_if callback: https://github.com/gearman/perl-Gearman-Client/blob/master/t/worker.pl

rgarcia avatar Jun 03 '14 03:06 rgarcia