Sha256: b1b0c3a80806ffd4ed5b4712ab65c8ce3230b717fe41a435d25ca3b1c4a1bd7f

Contents?: true

Size: 430 Bytes

Versions: 4

Compression:

Stored size: 430 Bytes

Contents

module Effective
  class SnippetReplacerJob < ::ApplicationJob

    queue_as :default

    if defined?(Sidekiq)
      # The retry setting works. But none of these waits seem to. Still getting exponential backoff.
      sidekiq_options retry: 2, retry_in: 10, wait: 10
      sidekiq_retry_in { |count, exception| 10 }
    end

    def perform(region)
      Effective::SnippetReplacer.new.replace_region!(region)
    end

  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
effective_assets-1.12.2 app/jobs/effective/snippet_replacer_job.rb
effective_assets-1.12.1 app/jobs/effective/snippet_replacer_job.rb
effective_assets-1.12.0 app/jobs/effective/snippet_replacer_job.rb
effective_developer-0.6.7 app/jobs/effective/snippet_replacer_job.rb