diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb index 60ba1d59..bef39599 100644 --- a/app/jobs/application_job.rb +++ b/app/jobs/application_job.rb @@ -6,6 +6,4 @@ class ApplicationJob < ActiveJob::Base # Most jobs are safe to ignore if the underlying records are no longer available # discard_on ActiveJob::DeserializationError - - sidekiq_options retry: 3 end diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb new file mode 100644 index 00000000..c3c84827 --- /dev/null +++ b/config/initializers/sidekiq.rb @@ -0,0 +1,3 @@ +# frozen_string_literal: true + +Sidekiq.default_job_options = { retry: 3 }