Sha256: daf7ee34905c04fd99b47a5812254ae352172378589fa4b52262dd96c0b227cb

Contents?: true

Size: 357 Bytes

Versions: 9

Compression:

Stored size: 357 Bytes

Contents

# frozen_string_literal: true

require 'delayed_job_recurring'

module Totoro
  class MessageResender
    include Delayed::RecurringJob
    run_every 10.second
    queue 'totoro'
    def perform
      Totoro::ResendService.new.resend_all_messages
    rescue StandardError => error
      Rails.logger.error error.message
      STDOUT.flush
    end
  end
end

Version data entries

9 entries across 8 versions & 1 rubygems

Version Path
totoro-1.0.7 lib/totoro/message_resender.rb
totoro-1.0.6 pkg/totoro-1.0.5/lib/totoro/message_resender.rb
totoro-1.0.6 lib/totoro/message_resender.rb
totoro-1.0.5 lib/totoro/message_resender.rb
totoro-1.0.4 lib/totoro/message_resender.rb
totoro-1.0.3 lib/totoro/message_resender.rb
totoro-1.0.2 lib/totoro/message_resender.rb
totoro-1.0.1 lib/totoro/message_resender.rb
totoro-1.0.0 lib/totoro/message_resender.rb