From af4e9c204654821cbfbc39a1c508cdc54e9989f5 Mon Sep 17 00:00:00 2001 From: Ernest Walzel Date: Mon, 8 May 2017 10:49:00 +0300 Subject: [PATCH] Set backoff timing to default for Ra jobs https://github.com/mperham/sidekiq/wiki/Error-Handling#automatic-job-retry --- app/jobs/ra/fetch_changes_batch_job.rb | 4 ---- app/jobs/ra/sync_changes_batches_job.rb | 4 ---- 2 files changed, 8 deletions(-) diff --git a/app/jobs/ra/fetch_changes_batch_job.rb b/app/jobs/ra/fetch_changes_batch_job.rb index 12b57000..1b85c4c7 100644 --- a/app/jobs/ra/fetch_changes_batch_job.rb +++ b/app/jobs/ra/fetch_changes_batch_job.rb @@ -570,10 +570,6 @@ class Ra::FetchChangesBatchJob sidekiq_options queue: 'ra' - sidekiq_retry_in do |_count| - 1.day.to_i - end - def perform(url, downloader: ::Harvester::Utils) file = downloader.download_file(url) perform_on_file(file) diff --git a/app/jobs/ra/sync_changes_batches_job.rb b/app/jobs/ra/sync_changes_batches_job.rb index 966fb3ec..c528c9a9 100644 --- a/app/jobs/ra/sync_changes_batches_job.rb +++ b/app/jobs/ra/sync_changes_batches_job.rb @@ -4,10 +4,6 @@ class Ra::SyncChangesBatchesJob sidekiq_options queue: 'ra' - sidekiq_retry_in do |_count| - 1.day.to_i - end - CHANGES_BATCHES_URL = 'https://data.gov.sk/dataset/register-adries-zmenove-davky' @@downloader = Faraday.new(request: { timeout: 5.minutes.to_i })