Delay search index background jobs on error.
This commit is contained in:
parent
049adbe469
commit
b209b0ca57
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
||||||
class SearchIndexJob < ApplicationJob
|
class SearchIndexJob < ApplicationJob
|
||||||
|
|
||||||
retry_on StandardError, attempts: 20
|
retry_on StandardError, attempts: 20, wait: lambda { |executions|
|
||||||
|
executions * 10.seconds
|
||||||
|
}
|
||||||
|
|
||||||
def perform(object, o_id)
|
def perform(object, o_id)
|
||||||
@object = object
|
@object = object
|
||||||
|
|
Loading…
Reference in a new issue