mirror of
https://github.com/ditkrg/outboxable.git
synced 2026-01-22 13:56:49 +00:00
Fixes rubocop offencses
This commit is contained in:
parent
e6f41a0cf9
commit
18aaa8bc26
7
Gemfile
7
Gemfile
@ -12,8 +12,7 @@ gem 'rspec', '~> 3.0'
|
||||
gem 'rubocop-rails', '~> 2.18'
|
||||
|
||||
group :development, :test do
|
||||
gem "sidekiq", "~> 7.0", require: true
|
||||
gem "sidekiq-cron", "~> 1.10"
|
||||
gem "activesupport", "~> 7.0"
|
||||
gem 'activesupport', '~> 7.0'
|
||||
gem 'sidekiq', '~> 7.0', require: true
|
||||
gem 'sidekiq-cron', '~> 1.10'
|
||||
end
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@ module Outboxable
|
||||
def perform
|
||||
Outbox.pending.where(last_attempted_at: [..Time.zone.now, nil]).find_in_batches(batch_size: 100).each do |batch|
|
||||
batch.each do |outbox|
|
||||
# This is to prevent a job from being retried too many times. Worst-case scenario is 1 minute delay in jobs.
|
||||
# This is to prevent a job from being retried too many times. Worst-case scenario is 1 minute delay in jobs.
|
||||
outbox.update(last_attempted_at: 1.minute.from_now)
|
||||
Outboxable::Worker.perform_async(outbox.id)
|
||||
end
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Outboxable
|
||||
VERSION = "0.1.3"
|
||||
VERSION = '0.1.3'
|
||||
end
|
||||
|
||||
BIN
outboxable-0.1.3.gem
Normal file
BIN
outboxable-0.1.3.gem
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user