Define max attempts for elasticsearch background job (to not endless queue not indexable items).

This commit is contained in:
Martin Edenhofer 2018-10-29 16:21:25 +01:00
parent 9fc841d7a1
commit aa363ee130

View file

@ -20,4 +20,9 @@ class BackgroundJobSearchIndex
Rails.logger.info "Can't index #{@object}.lookup(id: #{@o_id}), no such record found" Rails.logger.info "Can't index #{@object}.lookup(id: #{@o_id}), no such record found"
false false
end end
def max_attempts
20
end
end end