Basic Sidekiq Questions about Idempotency and functions
问题 I'm using Sidekiq to perform some heavy processing in the background. I looked online but couldn't find the answers to the following questions. I am using: Class.delay.use_method(listing_id) And then, inside the class, I have a self.use_method(listing_id) listing = Listing.find_by_id listing_id UserMailer.send_mail(listing) Class.call_example_function() Two questions: How do I make this function idempotent for the UserMailer sendmail? In other words, in case the delayed method runs twice, how