diff options
| author | Teddy Wing | 2018-01-09 15:18:31 +0100 |
|---|---|---|
| committer | Teddy Wing | 2018-01-09 15:18:31 +0100 |
| commit | 8464a8a46c9bb4a555f348cf69c9cf3000bce243 (patch) | |
| tree | e84dbd2e5d60afe7cb948df1c60ab53ba0bed596 /app/workers | |
| parent | 7c9e777704ee21f89630baa61e79c5baecc187bd (diff) | |
| download | chouette-core-8464a8a46c9bb4a555f348cf69c9cf3000bce243.tar.bz2 | |
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
Diffstat (limited to 'app/workers')
| -rw-r--r-- | app/workers/line_referential_sync_worker.rb | 1 | ||||
| -rw-r--r-- | app/workers/stop_area_referential_sync_worker.rb | 1 |
2 files changed, 2 insertions, 0 deletions
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) |
