diff options
Diffstat (limited to 'app/workers')
| -rw-r--r-- | app/workers/line_referential_sync_worker.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/workers/line_referential_sync_worker.rb b/app/workers/line_referential_sync_worker.rb index e63bf97cc..b39fae5e5 100644 --- a/app/workers/line_referential_sync_worker.rb +++ b/app/workers/line_referential_sync_worker.rb @@ -1,6 +1,5 @@ class LineReferentialSyncWorker include Sidekiq::Worker - sidekiq_options :retry => false def update_started_at lref_sync lref_sync.update_attribute(:started_at, Time.now) @@ -11,13 +10,16 @@ class LineReferentialSyncWorker end def perform(lref_sync_id) + logger.info "worker call to perfom" lref_sync = LineReferentialSync.find lref_sync_id update_started_at lref_sync begin Stif::CodifLineSynchronization.synchronize + logger.info "worker done CodifLineSynchronization" rescue Exception => e ap "LineReferentialSyncWorker perform:rescue #{e.message}" ensure + logger.info "worker ensure ended_at" update_ended_at lref_sync end end |
