Skip to content

Commit

Permalink
log cursor to complete very long taks
Browse files Browse the repository at this point in the history
  • Loading branch information
kjgarza committed Feb 11, 2020
1 parent a173d64 commit 6d44214
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d44214

Please sign in to comment.