mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Use ApplicationJob instead of ActiveJob::Base in guide [ci skip]
This commit is contained in:
parent
3d7d1e2165
commit
9291a81369
1 changed files with 1 additions and 1 deletions
|
@ -395,7 +395,7 @@ It's also possible to retry or discard a job if an exception is raised during ex
|
|||
For example:
|
||||
|
||||
```ruby
|
||||
class RemoteServiceJob < ActiveJob::Base
|
||||
class RemoteServiceJob < ApplicationJob
|
||||
retry_on CustomAppException # defaults to 3s wait, 5 attempts
|
||||
|
||||
discard_on ActiveJob::DeserializationError
|
||||
|
|
Loading…
Reference in a new issue