activejob retry:ActiveJob自动重试 源码
ActiveJob :: Retry 这是活跃开发中的Alpha库,因此API可能会更改。 ActiveJob的自动重试功能。 只需在您的工作类别中include ActiveJob::Retry.new(strategy: :something, **options) : class ProcessWebhook < ActiveJob :: Base queue_as :webhooks # Constant delay between attempts: include ActiveJob :: Retry . new ( strategy : :constant
文件列表
activejob-retry-master.zip
(预估有个33文件)
activejob-retry-master
.travis.yml
449B
Gemfile.activejob51
513B
.rubocop.yml
449B
Gemfile.activejob42
507B
Gemfile.activejob60
513B
LICENSE
1KB
activejob-retry.gemspec
1KB
.rspec
30B
spec
暂无评论