spree_cm_commissioner 2.3.0.pre.pre13 → 2.3.0.pre.pre15
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: de0699d1dc713a380bc232895c2662c173b22e6d01e93f2fc2d0f2d18b723bde
|
|
4
|
+
data.tar.gz: 82a2a10e8ff8b9f7bd2786ebc5004fb44cb2133d819db1012b3179b1f2fe0b80
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e4613e0a9d0b52f781a2d2c1f89de0078d4b5c65ef16f1a26090ffbddda0c4c9494f9ca8458264f6023fbf949ea4e4228111116153da1b6e3be6dec51af7715a
|
|
7
|
+
data.tar.gz: 608e42e844de2015b7a94de6e350034b7a2b74d63998834fbff71fc599f77ffac57385e65a70df53a10a34582f7bb2d13deff9c44773ddbe4661b28bbb9238b9
|
data/Gemfile.lock
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
module SpreeCmCommissioner
|
|
2
|
-
|
|
2
|
+
# Logs waiting room session data to Firebase asynchronously.
|
|
3
|
+
#
|
|
4
|
+
# Called from WaitingRoomSessionCreator#log_to_firebase after user enters waiting room.
|
|
5
|
+
# Allows main request to complete without waiting for Firebase I/O.
|
|
6
|
+
#
|
|
7
|
+
# == Retry Configuration
|
|
8
|
+
#
|
|
9
|
+
# Retries on StandardError with exponential backoff: 4 attempts total (1 initial + 3 retries)
|
|
10
|
+
#
|
|
11
|
+
# retry_on StandardError, wait: :exponentially_longer, attempts: 4
|
|
12
|
+
#
|
|
13
|
+
# Wait times: ~1s, ~10s, ~100s
|
|
14
|
+
# Rationale: Balances reliability vs resources. Firebase is generally reliable, so 3 retries
|
|
15
|
+
# is sufficient. Exponential backoff gives service time to recover and reduces load during outages.
|
|
16
|
+
#
|
|
17
|
+
# == Implementation Details
|
|
18
|
+
#
|
|
19
|
+
# - Uses ActiveJob's retry_on (works with any queue adapter: Sidekiq, Resque, etc.)
|
|
20
|
+
# - Inherits from ApplicationUniqueJob (prevents duplicate Firebase writes)
|
|
21
|
+
# - On failure after 4 attempts: moved to dead letter queue, logged for investigation
|
|
22
|
+
#
|
|
23
|
+
class WaitingRoomSessionFirebaseLoggerJob < ApplicationUniqueJob
|
|
24
|
+
retry_on StandardError, wait: :exponentially_longer, attempts: 4
|
|
25
|
+
|
|
3
26
|
def perform(options)
|
|
4
27
|
room_session = SpreeCmCommissioner::WaitingRoomSession.find(options[:room_session_id])
|
|
5
28
|
waiting_guest_firebase_doc_id = options[:waiting_guest_firebase_doc_id]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spree_cm_commissioner
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.3.0.pre.
|
|
4
|
+
version: 2.3.0.pre.pre15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- You
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: spree
|