summaryrefslogtreecommitdiff
path: root/lib/presque/worker/Role/Management.pm
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-06-28 10:51:43 +0200
committerfranck cuny <franck@lumberjaph.net>2010-06-28 10:51:43 +0200
commite047c32a259dc61705bb29308b0a39ae742bc2b4 (patch)
tree242f1ab09a56dfce36237186915c991f03cc13b8 /lib/presque/worker/Role/Management.pm
parentmissing queue_name (diff)
downloadpresque-worker-e047c32a259dc61705bb29308b0a39ae742bc2b4.tar.gz
fix queue_name
Diffstat (limited to 'lib/presque/worker/Role/Management.pm')
-rw-r--r--lib/presque/worker/Role/Management.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/presque/worker/Role/Management.pm b/lib/presque/worker/Role/Management.pm
index e24c302..d168311 100644
--- a/lib/presque/worker/Role/Management.pm
+++ b/lib/presque/worker/Role/Management.pm
@@ -6,7 +6,7 @@ has shut_down => (is => 'rw', isa => 'Bool', default => 0,);
before start => sub {
my $self = shift;
- $self->register_worker(queue_name => worker_id => $self->worker_id);
+ $self->register_worker(queue_name => $self->queue_name, worker_id => $self->worker_id);
$SIG{INT} = sub { $self->_shutdown };
$SIG{TERM} = sub { $self->_shutdown };
$SIG{QUIT} = sub { $self->_graceful_shutdown };