From 8464a8a46c9bb4a555f348cf69c9cf3000bce243 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 9 Jan 2018 15:18:31 +0100 Subject: LineReferentialSyncWorker,StopAreaReferentialSyncWorker: Enable retry Now that Sidekiq retries are deactivated (3487ce6f34ef187a2a8daf170440f51f659c46b7), we need to enable retry on the workers that need it. We do want retry on the sync workers, so enable these locally in the worker classes. Refs #5495 --- app/workers/line_referential_sync_worker.rb | 1 + app/workers/stop_area_referential_sync_worker.rb | 1 + 2 files changed, 2 insertions(+) (limited to 'app') diff --git a/app/workers/line_referential_sync_worker.rb b/app/workers/line_referential_sync_worker.rb index 9419e6333..1303a63fd 100644 --- a/app/workers/line_referential_sync_worker.rb +++ b/app/workers/line_referential_sync_worker.rb @@ -1,5 +1,6 @@ class LineReferentialSyncWorker include Sidekiq::Worker + sidekiq_options retry: true def process_time Process.clock_gettime(Process::CLOCK_MONOTONIC, :second) diff --git a/app/workers/stop_area_referential_sync_worker.rb b/app/workers/stop_area_referential_sync_worker.rb index f6ed9171e..3de351a91 100644 --- a/app/workers/stop_area_referential_sync_worker.rb +++ b/app/workers/stop_area_referential_sync_worker.rb @@ -1,5 +1,6 @@ class StopAreaReferentialSyncWorker include Sidekiq::Worker + sidekiq_options retry: true def process_time Process.clock_gettime(Process::CLOCK_MONOTONIC, :second) -- cgit v1.2.3