Class: Totoro::ResendService

Inherits:
Object
  • Object
show all
Defined in:
lib/totoro/services/resend_service.rb

Instance Method Summary collapse

Instance Method Details

#resend_all_messagesObject



5
6
7
8
9
# File 'lib/totoro/services/resend_service.rb', line 5

def resend_all_messages
  Totoro::TotoroFailedMessage.find_in_batches(batch_size: 100) do |message_group|
    message_group.each { |m| resend_message(m) }
  end
end