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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/outboxable/polling_publisher_worker.rb +1 -1
- data/lib/outboxable/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b38cb12aa426fec3c3756e26af3086680a8efc3ae193245248da9993ae004690
|
|
4
|
+
data.tar.gz: 5fd17529cddb6278ec2fd8c4dcdd356eeccb4555482508098df4d870a84b4fc0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 324043345096a4d5c7593cb30602277c6422a8fe3ae18bebd443a8bb535cc5069ab873120f5315e88de9b44f1b54190cc086436d393a8684d75af2f51307ca5b
|
|
7
|
+
data.tar.gz: fbefecb406a8b14f211913861a2dd4fbaa96535ae6c849cb7dfb67f9b01313d290812299a3b5b96ee681b25548ab87c372d411db0d8a53e8926d82f4d5edd29d
|
data/Gemfile.lock
CHANGED
|
@@ -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
|
data/lib/outboxable/version.rb
CHANGED
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
|
+
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-
|
|
11
|
+
date: 2023-04-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bunny
|