提交 9291a813 编写于 作者: Y Yoshiyuki Hirano

Use ApplicationJob instead of ActiveJob::Base in guide [ci skip]

上级 3d7d1e21
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册