Skip to content

Commit

Permalink
Define max attempts for elasticsearch background job (to not endless …
Browse files Browse the repository at this point in the history
…queue not indexable items).
  • Loading branch information
martini committed Oct 29, 2018
1 parent 9fc841d commit aa363ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/background_job_search_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ def exists?(record)
Rails.logger.info "Can't index #{@object}.lookup(id: #{@o_id}), no such record found"
false
end

def max_attempts
20
end

end

0 comments on commit aa363ee

Please sign in to comment.