Skip to content

Commit 0327217

Browse files
committed
call beforePerform before retrieving an instance of the job class
1 parent 610c4dc commit 0327217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Resque/Job.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,10 @@ public function getInstance()
186186
*/
187187
public function perform()
188188
{
189-
$instance = $this->getInstance();
190189
try {
191190
Resque_Event::trigger('beforePerform', $this);
192191

192+
$instance = $this->getInstance();
193193
if(method_exists($instance, 'setUp')) {
194194
$instance->setUp();
195195
}

0 commit comments

Comments
 (0)