bensheldon / good_job

Multithreaded, Postgres-based, Active Job backend for Ruby on Rails.
https://goodjob-demo.herokuapp.com/
MIT License
2.53k stars 190 forks source link

Use newer syntax in documentation for `wait` config on `retry` #1380

Closed benoittgt closed 1 week ago

benoittgt commented 3 weeks ago

good_job already handle both of course, but doc should provide code that do not produce deprecation warnings like:

W, [2024-06-20T23:10:09.948834 #81411]  WARN -- : DEPRECATION WARNING: `wait: :exponentially_longer` will actually wait polynomially longer and is therefore deprecated. Prefer `wait: :polynomially_longer` to avoid confusion and keep the same behavior. (called from <class:TaskWebhookJob> at /Users/benoit.tigeot/projects/tooling/k8s-tooling-gw/app/jobs/task_webhook_job.rb:3)

No problem if you think it's better to have doc that work on more version of Rails.

bensheldon commented 1 week ago

Thanks for catching that!