Module: Resque::Failure::MultipleWithRetrySuppression::CleanupHooks

Defined in:
lib/resque/failure/multiple_with_retry_suppression.rb

Instance Method Summary collapse

Instance Method Details

#after_perform_retry_failure_cleanup(*args) ⇒ Object

Resque after_perform hook.

Deletes retry failure information from Redis.



26
27
28
29
30
# File 'lib/resque/failure/multiple_with_retry_suppression.rb', line 26

def after_perform_retry_failure_cleanup(*args)
  retry_key = redis_retry_key(*args)
  failure_key = Resque::Failure::MultipleWithRetrySuppression.failure_key(retry_key)
  Resque.redis.del(failure_key)
end