FailingHardWorker.perform_async(1) assert_equal 1, FailingHardWorker.jobs.size FailingHardWorker.drain assert_equal 1, FailingHardWorker.jobs.size
--
You received this message because you are subscribed to the Google Groups "Sidekiq" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sidekiq+u...@googlegroups.com.
To post to this group, send email to sid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sidekiq/e40fe8fb-302b-4864-b150-becb5234f135%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Sidekiq" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sidekiq/phnSFwkmTt8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sidekiq+u...@googlegroups.com.
To post to this group, send email to sid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sidekiq/CAPjBv7p8bu%2BTQkEa6RM2fxpn1ynjEb7iVhzQv4kA6L56PXe3Jg%40mail.gmail.com.
sidekiq_retries_exhausted do |msg|
subscription_id = nil
begin
args = msg['args']
subscription_id = args[0]
subscription = Subscription.lock.find(subscription_id)
Subscription.transaction do
subscription.renew_fail!
end
rescue => e
Sidekiq.logger.warn "Retries exhausted: #{msg['class']} failed to mark subscription##{subscription_id} as renew_fail!"
end
end
To view this discussion on the web visit https://groups.google.com/d/msgid/sidekiq/CAFLAJF%3DX%3D-9psE%2BvZquzJzw8u7LaN7P0c7HgR8VoTZ7M99-4pA%40mail.gmail.com.
Is there a way to derive the msg from the worker instance?
To view this discussion on the web visit https://groups.google.com/d/msgid/sidekiq/CAPjBv7rXGWYz%2BN2oCbGik9Jx7y-QY8mimqx1ad0eU7D0MzV74Q%40mail.gmail.com.