activejob-retry:ActiveJob自动重试

时间:2021-02-06 00:20:33
【文件属性】:
文件名称:activejob-retry:ActiveJob自动重试
文件大小:24KB
文件格式:ZIP
更新时间:2021-02-06 00:20:33
ruby rails sidekiq worker resque 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
----.travis.yml(449B)
----Gemfile.activejob51(513B)
----.rubocop.yml(449B)
----Gemfile.activejob42(507B)
----Gemfile.activejob60(513B)
----LICENSE(1KB)
----activejob-retry.gemspec(1KB)
----.rspec(30B)
----spec()
--------retry()
--------retry_spec.rb(10KB)
--------spec_helper.rb(512B)
----.gitignore(75B)
----CHANGELOG.md(2KB)
----lib()
--------active_job()
--------activejob()
----README.md(6KB)
----Gemfile.activejob50(513B)
----Gemfile.activejob52(513B)

网友评论