blob: a177e7091b5ad5f3f03133f19c4c1a6fa55aea69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
Sidekiq.configure_server do |config|
if ENV["CHOUETTE_SIDEKIQ_CANCEL_SYNCS_ON_BOOT"]
[
LineReferentialSync.pending,
StopAreaReferentialSync.pending
].each do |pendings|
pendings.map { |sync| sync.failed({error: 'Failed by Sidekiq reboot', processing_time: 0}) }
end
end
config.redis = { url: ENV.fetch('SIDEKIQ_REDIS_URL', 'redis://localhost:6379/12') }
end
Sidekiq.configure_client do |config|
config.redis = { url: ENV.fetch('SIDEKIQ_REDIS_URL', 'redis://localhost:6379/12') }
end
Sidekiq.default_worker_options = { retry: false }
|