diff --git a/lib/Resque/Job.php b/lib/Resque/Job.php index ddc37d0..23ae7a4 100755 --- a/lib/Resque/Job.php +++ b/lib/Resque/Job.php @@ -186,10 +186,10 @@ class Resque_Job */ public function perform() { - $instance = $this->getInstance(); try { Resque_Event::trigger('beforePerform', $this); + $instance = $this->getInstance(); if(method_exists($instance, 'setUp')) { $instance->setUp(); }