blob: 724aaecc5a2b9905f35e206ae2853824762f98c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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
|