outboxable 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1d39adee0b6d113feae798b6fd6a132e907ed882783d46d47b6b6fc658342f3
4
- data.tar.gz: 0b40c93e184d69c2ed91a549c69e98b4e842f82f1458539e28e94bafa78e2f73
3
+ metadata.gz: b38cb12aa426fec3c3756e26af3086680a8efc3ae193245248da9993ae004690
4
+ data.tar.gz: 5fd17529cddb6278ec2fd8c4dcdd356eeccb4555482508098df4d870a84b4fc0
5
5
  SHA512:
6
- metadata.gz: 9bfdc958c288ede25a0e009188d15724b623c7a2be6c4f4c27cde4723c3036d53d2265f39d2cb5366a71bddaff237bf3ef01ac3f11fcfd7e11efa6bfed7a5623
7
- data.tar.gz: 69896262919b22874de8b0c0c8c34d77d9830ffae7d46f4eb59e674191932872a753632d2eb99750c3306de47784c4452a1564e7ea2da30407e7f18653b968bb
6
+ metadata.gz: 324043345096a4d5c7593cb30602277c6422a8fe3ae18bebd443a8bb535cc5069ab873120f5315e88de9b44f1b54190cc086436d393a8684d75af2f51307ca5b
7
+ data.tar.gz: fbefecb406a8b14f211913861a2dd4fbaa96535ae6c849cb7dfb67f9b01313d290812299a3b5b96ee681b25548ab87c372d411db0d8a53e8926d82f4d5edd29d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- outboxable (0.1.4)
4
+ outboxable (0.1.5)
5
5
  bunny (>= 2.19.0)
6
6
  connection_pool (~> 2.3.0)
7
7
 
@@ -7,8 +7,8 @@ module Outboxable
7
7
  Outbox.pending.where(last_attempted_at: [..Time.zone.now, nil]).find_in_batches(batch_size: 100).each do |batch|
8
8
  batch.each do |outbox|
9
9
  # This is to prevent a job from being retried too many times. Worst-case scenario is 1 minute delay in jobs.
10
- outbox.update(last_attempted_at: 1.minute.from_now)
11
10
  Outboxable::Worker.perform_async(outbox.id)
11
+ outbox.update(last_attempted_at: 1.minute.from_now, status: :processing)
12
12
  end
13
13
  end
14
14
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Outboxable
4
- VERSION = '0.1.4'
4
+ VERSION = '0.1.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outboxable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brusk Awat
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-06 00:00:00.000000000 Z
11
+ date: 2023-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny