summary refs log tree commit diff
path: root/lib/presque/worker/Role
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-11-26 15:38:22 +0100
committerfranck cuny <franck@lumberjaph.net>2010-11-26 15:38:22 +0100
commitf38260e684f3182c67cd1bd97ab8fbf2554cc20a (patch)
treee53ed16c6e6c451f11f1b67cc1f1e2dc883b3809 /lib/presque/worker/Role
parenttypo (diff)
downloadpresque-worker-f38260e684f3182c67cd1bd97ab8fbf2554cc20a.tar.gz
use payload
Diffstat (limited to 'lib/presque/worker/Role')
-rw-r--r--lib/presque/worker/Role/Job.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/presque/worker/Role/Job.pm b/lib/presque/worker/Role/Job.pm
index 313116b..b108ef7 100644
--- a/lib/presque/worker/Role/Job.pm
+++ b/lib/presque/worker/Role/Job.pm
@@ -11,7 +11,7 @@ sub _job_failure {
     my $retries = ($job->{retries_left} || $self->job_retries) - 1;
     $job->{retries_left} = $retries;
     try {
-        $self->retry_job(queue_name => $self->queue_name, %$job) if $retries > 0;
+        $self->retry_job(queue_name => $self->queue_name, payload => $job) if $retries > 0;
     }
     catch {
         # XXX