зеркало из https://github.com/github/octobox.git
Fix sidekiq initializer (#1236)
Fixes what I broke in https://github.com/octobox/octobox/pull/1234
This commit is contained in:
Родитель
626dbd6f68
Коммит
cedb55284f
|
@ -14,10 +14,10 @@ if Octobox.background_jobs_enabled?
|
|||
end
|
||||
Sidekiq::Status.configure_server_middleware config, expiration: 60.minutes
|
||||
Sidekiq::Status.configure_client_middleware config, expiration: 60.minutes
|
||||
end
|
||||
|
||||
config.death_handlers << ->(job, _ex) do
|
||||
SidekiqUniqueJobs::Digests.del(digest: job['unique_digest']) if job['unique_digest']
|
||||
config.death_handlers << ->(job, _ex) do
|
||||
SidekiqUniqueJobs::Digests.del(digest: job['unique_digest']) if job['unique_digest']
|
||||
end
|
||||
end
|
||||
|
||||
Sidekiq.configure_client do |config|
|
||||
|
|
Загрузка…
Ссылка в новой задаче