canvas_sync 0.22.0.beta3 → 0.22.0.beta5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/canvas_sync/job_uniqueness/strategy/base.rb +5 -1
- data/lib/canvas_sync/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ebf3daf8b5f039ca427bd4f81d9aab1bdeb1ad38d24fcd2be4abd8991d93a30
|
4
|
+
data.tar.gz: 676a621e3e4fc0eac6a059a290a9ae7c32d9fe37da700f8d3833e4c98ad91715
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c39d0c02fada82aedbf280e17f5b5c7ac4c80ce9372fb3d13034ed72d6ca2a20760f6b7e1daa0c38e45afaadf8db64b48d45d7c1e559bef8fb48e73acaff3e3e
|
7
|
+
data.tar.gz: 89f8c4ed29c80a2b5a8587636741860736690f62bb2a9a86c52318a117152f02dd2fc15741856332eb2e692c36b64396b811861aa2dd8f4b2cbf506407c59ea8
|
@@ -62,12 +62,15 @@ module CanvasSync::JobUniqueness
|
|
62
62
|
})
|
63
63
|
end
|
64
64
|
|
65
|
+
CanvasSync::JobUniqueness.logger.debug("Wrapped job in Locking Batch #{batch.bid} for #{key}")
|
66
|
+
|
65
67
|
batch.jobs do
|
66
68
|
return blk.call
|
67
69
|
end
|
68
70
|
end
|
69
71
|
|
70
72
|
def self.internal_batch_callback(batch_status, opts)
|
73
|
+
CanvasSync::JobUniqueness.logger.debug("Received Batch(#{batch_status.bid}) callback for #{opts[:lock_strategy]} #{opts[:lock_key]} - #{opts[:event]}")
|
71
74
|
strategy_class = opts[:lock_strategy].constantize
|
72
75
|
lock_context = LockContext.from_serialized(opts[:lock_context])
|
73
76
|
strategy = strategy_class.new(lock_context)
|
@@ -93,7 +96,8 @@ module CanvasSync::JobUniqueness
|
|
93
96
|
end
|
94
97
|
|
95
98
|
def unlock()
|
96
|
-
locksmith.unlock
|
99
|
+
result = locksmith.unlock
|
100
|
+
CanvasSync::JobUniqueness.logger.debug { "Unlocked #{key} - (#{result || 'Not Unlocked!'})" }
|
97
101
|
end
|
98
102
|
|
99
103
|
def locksmith
|
data/lib/canvas_sync/version.rb
CHANGED