File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -188,15 +188,6 @@ public function perform()
188
188
catch (Resque_Job_DontPerform $ e ) {
189
189
return false ;
190
190
}
191
- // Catch any other exception and raise the onFailure event. Rethrow
192
- // the exception
193
- catch (Exception $ e ) {
194
- Resque_Event::trigger ('onFailure ' , array (
195
- 'exception ' => $ e ,
196
- 'job ' => $ this ,
197
- ));
198
- throw $ e ;
199
- }
200
191
201
192
return true ;
202
193
}
@@ -206,6 +197,11 @@ public function perform()
206
197
*/
207
198
public function fail ($ exception )
208
199
{
200
+ Resque_Event::trigger ('onFailure ' , array (
201
+ 'exception ' => $ exception ,
202
+ 'job ' => $ this ,
203
+ ));
204
+
209
205
$ this ->updateStatus (Resque_Job_Status::STATUS_FAILED );
210
206
require_once dirname (__FILE__ ) . '/Failure.php ' ;
211
207
Resque_Failure::create (
You can’t perform that action at this time.
0 commit comments