Define max attempts for elasticsearch background job (to not endless queue not indexable items).
This commit is contained in:
parent
9fc841d7a1
commit
aa363ee130
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue