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
Daniel Morton 94ccd5410d
retry_on parameter attempts now accepts :unlimited (#41761)
In some applications, some classes of errors may be raised during the
execution of a job which the developer would want to retry forever.

These classes of errors would most likely be infrastructure problems that
the developer knows will be resolved eventually but may take a variable
amount of time or errors where due to application business logic, there
could be something temporarily blocking the job from executing, like a
resource that is needed for the job being locked for a lengthy amount of
time.

While an arbitrarily large number of attempts could previously be passed,
this is inexpressive as sometimes the developer may just need the job to
continue to be retried until it eventually succeeds. Without this,
developers would need to include additional code to handle the situation
where the job eventually fails its attempts limit and has to be re-enqueued
manually.

As with many things this should be used with caution and only for errors
that the developer knows will definitely eventually be resolved, allowing
the job to continue.

[Daniel Morton + Rafael Mendonça França]
2021-07-28 18:32:19 -04:00
..
adapters Remove support for Qu gem. 2018-03-19 21:27:16 +01:00
cases retry_on parameter attempts now accepts :unlimited (#41761) 2021-07-28 18:32:19 -04:00
integration Wrap evaluation of db/seeds.rb with the executor 2020-11-18 16:26:20 -06:00
jobs retry_on parameter attempts now accepts :unlimited (#41761) 2021-07-28 18:32:19 -04:00
models [Active Job] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
support Always use OpenSSL constants for Digest operations 2021-06-30 13:57:54 +02:00
helper.rb Return false when enqueuing a job is aborted 2020-10-30 00:25:31 +00:00