1
0
Fork 0
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:
Eugene Kenny 2020-04-20 21:27:16 +01:00 committed by GitHub
commit a2c3ef098a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

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

View file

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