aboutsummaryrefslogtreecommitdiffstats
path: root/app/workers
diff options
context:
space:
mode:
authorXinhui2017-01-12 15:41:31 +0100
committerXinhui2017-01-12 15:41:38 +0100
commitb0f53db2facca6ae040d70ff1d041847e566dc2f (patch)
tree99040b9c374224c0d7254c5156246ab927a4dfbf /app/workers
parent7494a76f42388c1f9c34c09b65a829c6ca05d829 (diff)
downloadchouette-core-b0f53db2facca6ae040d70ff1d041847e566dc2f.tar.bz2
Set status failed for reflex:codiflign sync on sidekiq restart
Refs #2390
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/line_referential_sync_worker.rb2
-rw-r--r--app/workers/stop_area_referential_sync_worker.rb1
2 files changed, 3 insertions, 0 deletions
diff --git a/app/workers/line_referential_sync_worker.rb b/app/workers/line_referential_sync_worker.rb
index b883e5180..df65fc10d 100644
--- a/app/workers/line_referential_sync_worker.rb
+++ b/app/workers/line_referential_sync_worker.rb
@@ -1,5 +1,7 @@
class LineReferentialSyncWorker
include Sidekiq::Worker
+ sidekiq_options :retry => false
+
def process_time
Process.clock_gettime(Process::CLOCK_MONOTONIC, :second)
end
diff --git a/app/workers/stop_area_referential_sync_worker.rb b/app/workers/stop_area_referential_sync_worker.rb
index f2c6746da..dede018dd 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 => false
def process_time
Process.clock_gettime(Process::CLOCK_MONOTONIC, :second)