Configure "retry jitter" option in active job
This way, when several jobs fail at the same time, not all of them will be retried at the same time.
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
Rails.application.config.active_storage.track_variants = true
|
Rails.application.config.active_storage.track_variants = true
|
||||||
|
|
||||||
# Apply random variation to the delay when retrying failed jobs.
|
# Apply random variation to the delay when retrying failed jobs.
|
||||||
# Rails.application.config.active_job.retry_jitter = 0.15
|
Rails.application.config.active_job.retry_jitter = 0.15
|
||||||
|
|
||||||
# Stop executing `after_enqueue`/`after_perform` callbacks if
|
# Stop executing `after_enqueue`/`after_perform` callbacks if
|
||||||
# `before_enqueue`/`before_perform` respectively halts with `throw :abort`.
|
# `before_enqueue`/`before_perform` respectively halts with `throw :abort`.
|
||||||
|
|||||||
Reference in New Issue
Block a user