From 6d4421432e987a10ee6d492dd4e40b1af30521ac Mon Sep 17 00:00:00 2001 From: kjgarza Date: Tue, 11 Feb 2020 17:47:32 +0100 Subject: [PATCH] log cursor to complete very long taks --- app/models/event.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/event.rb b/app/models/event.rb index 6c7db8c8a..c6e164534 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -549,6 +549,7 @@ def self.subj_id_check(options = {}) Rails.logger.warn "[DoubleCheck] DoubleCheck #{response.results.results.length} events starting with _id #{response.results.to_a.first[:_id]}." cursor = response.results.to_a.last[:sort] + Rails.logger.warn "[DoubleCheck] Cursor: #{cursor} " # dois = response.results.results.map(&:subj_id) events = response.results.results