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:
Javi Martín
2021-09-25 03:27:08 +02:00
parent 600bc793a1
commit 8e2b7e231f

View File

@@ -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`.