mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #38993 from eugeneius/retry_jitter_new_framework_defaults
Add retry_jitter to 6.1 new framework defaults
This commit is contained in:
commit
a2c3ef098a
2 changed files with 4 additions and 4 deletions
|
@ -159,10 +159,6 @@ module Rails
|
|||
when "6.1"
|
||||
load_defaults "6.0"
|
||||
|
||||
if respond_to?(:active_job)
|
||||
active_job.retry_jitter = 0.15
|
||||
end
|
||||
|
||||
if respond_to?(:active_record)
|
||||
active_record.has_many_inversing = true
|
||||
end
|
||||
|
@ -172,6 +168,7 @@ module Rails
|
|||
end
|
||||
|
||||
if respond_to?(:active_job)
|
||||
active_job.retry_jitter = 0.15
|
||||
active_job.skip_after_callbacks_if_terminated = true
|
||||
end
|
||||
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
# Track Active Storage variants in the database.
|
||||
# Rails.application.config.active_storage.track_variants = true
|
||||
|
||||
# Apply random variation to the delay when retrying failed jobs.
|
||||
# Rails.application.config.active_job.retry_jitter = 0.15
|
||||
|
||||
# Stop executing `after_enqueue`/`after_perform` callbacks if
|
||||
# `before_enqueue`/`before_perform` respectively halts with `throw :abort`.
|
||||
# Rails.application.config.active_job.skip_after_callbacks_if_terminated = true
|
||||
|
|
Loading…
Reference in a new issue