1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activejob/test
Cliff Pruitt db0bc5e6d5 Disable ActiveJob retry jitter when given zero/falsey value (#38003)
* Add failing ActiveJob exceptions test for "disable retry jitter"

Thanks to @kaspth for the starting point.

* Update ActiveJob retry jitter to correctly use zero value

* Simplify "disable retry jitter" test

We don't need to repeat this many times. Fewer is shorter.

* Refactor determine_delay with jitter

* Fix indentation

* Close the curtains and give JITTER_DEFAULT some privacy

* Use .zero? instead of == to check jitter value

* Add ActiveJob test for explicit zero jitter

Co-authored-by: Kasper Timm Hansen <hey@kaspth.com>
Co-authored-by: Cliff Pruitt <cliff.pruitt@cliffpruitt.com>
2019-12-17 15:23:52 -03:00
..
adapters Remove support for Qu gem. 2018-03-19 21:27:16 +01:00
cases Disable ActiveJob retry jitter when given zero/falsey value (#38003) 2019-12-17 15:23:52 -03:00
integration Run inline jobs in separate threads 2019-11-01 20:14:40 -04:00
jobs Disable ActiveJob retry jitter when given zero/falsey value (#38003) 2019-12-17 15:23:52 -03:00
models [Active Job] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
support Tidy up the build output for Active Job adapters 2019-10-23 20:47:50 +10:30
helper.rb Fix deprecation being thrown at boot time: 2019-12-13 03:25:03 +01:00