activejob retry:ActiveJob自动重试 源码

上传:qqintention21312 浏览: 17 推荐: 0 文件:ZIP 大小:24.05KB 上传时间:2021-02-08 19:15:05 版权申诉
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
上传资源
用户评论