use Gearman::Starter; my $gearman_starter = Gearman::Starter->new( server => ['127.0.0.1:7003'], max_workers => 3, max_requests_per_child => 10, module => ['MyWorker::Job'], scoreboard_dir => $scoreboard_dir, # optional port => 9999, # optional Reload => ['lib/MyWorker/Job.pm'], # optional on_fail => sub { ... }, # optional ); $gearman_starter->run;
マージありがとうございます。
https://metacpan.org/pod/Gearman::Starter
https://github.com/tokuhirom/gearman-starter.pl