Skip to content

Commit

Permalink
no need to show custom workers in the synopsis anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 9, 2017
1 parent c00cb99 commit a3698b9
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/Minion.pm
Expand Up @@ -161,13 +161,6 @@ Minion - Job queue
$worker->status->{jobs} = 12;
$worker->run;
# Build custom workers
my $worker = $minion->repair->worker;
while (int rand 2) {
if (my $job = $worker->register->dequeue(5)) { $job->perform }
}
$worker->unregister;
=head1 DESCRIPTION
=begin html
Expand Down Expand Up @@ -720,6 +713,14 @@ Build L<Minion::Worker> object.
$job->perform;
$worker->unregister;
# Build a custom worker
my $worker = $minion->repair->worker;
while (int rand 2) {
next unless my $job = $worker->register->dequeue(5);
$job->perform;
}
$worker->unregister;
=head1 REFERENCE
This is the class hierarchy of the L<Minion> distribution.
Expand Down

0 comments on commit a3698b9

Please sign in to comment.