lantins / resque-lock-timeout

A Resque plugin; adds locking, with optional timeout/deadlock handling to resque jobs.
MIT License
53 stars 20 forks source link

Fix silent exceptions when lock timeout expires before exception raised. #25

Closed jasoncheow closed 9 years ago

jasoncheow commented 9 years ago

The return in the ensure block of the around_perform_lock method causes exceptions not to be raised and flagged as failures when exceptions are raised after the lock timeout. This PR fixes this issue by not invoking return.

lantins commented 9 years ago

Thanks @jasoncheow :) PR looks good.