canvas_sync 0.22.0.beta4 → 0.22.0.beta5

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: cdb0f4f154277e78fca3f6f28025151d95a252aa08f09d9651d55b8742888475
4
- data.tar.gz: 2192f247306c0749f3ca6162d384c38f3d848bf7dc0b4f0cfdfea465adc759b9
3
+ metadata.gz: 5ebf3daf8b5f039ca427bd4f81d9aab1bdeb1ad38d24fcd2be4abd8991d93a30
4
+ data.tar.gz: 676a621e3e4fc0eac6a059a290a9ae7c32d9fe37da700f8d3833e4c98ad91715
5
5
  SHA512:
6
- metadata.gz: 84b414b63d902a717697240ad2998bde8d6d5399f90cb9cf533257b7c62728df71ae7e759a33f361df81801631e13f55f75361d83133185f8b8be40ec51aa8ef
7
- data.tar.gz: 8a73820fe6951e337e21bf0eccca75210b0a34da36da0a1306d00ed92cc0ae3e6ec209f01893b2774b396b29d88fc2b3232ed3db705a67aec40508a6b8e6d2df
6
+ metadata.gz: c39d0c02fada82aedbf280e17f5b5c7ac4c80ce9372fb3d13034ed72d6ca2a20760f6b7e1daa0c38e45afaadf8db64b48d45d7c1e559bef8fb48e73acaff3e3e
7
+ data.tar.gz: 89f8c4ed29c80a2b5a8587636741860736690f62bb2a9a86c52318a117152f02dd2fc15741856332eb2e692c36b64396b811861aa2dd8f4b2cbf506407c59ea8
@@ -62,7 +62,7 @@ module CanvasSync::JobUniqueness
62
62
  })
63
63
  end
64
64
 
65
- CanvasSync.logger.debug("Wrapped job in Locking Batch #{batch.bid} for #{key}")
65
+ CanvasSync::JobUniqueness.logger.debug("Wrapped job in Locking Batch #{batch.bid} for #{key}")
66
66
 
67
67
  batch.jobs do
68
68
  return blk.call
@@ -70,7 +70,7 @@ module CanvasSync::JobUniqueness
70
70
  end
71
71
 
72
72
  def self.internal_batch_callback(batch_status, opts)
73
- CanvasSync.logger.debug("Received Batch(#{batch_status.bid}) callback for #{opts[:lock_strategy]}:#{opts[:lock_key]} - #{opts[:event]}")
73
+ CanvasSync::JobUniqueness.logger.debug("Received Batch(#{batch_status.bid}) callback for #{opts[:lock_strategy]} #{opts[:lock_key]} - #{opts[:event]}")
74
74
  strategy_class = opts[:lock_strategy].constantize
75
75
  lock_context = LockContext.from_serialized(opts[:lock_context])
76
76
  strategy = strategy_class.new(lock_context)
@@ -96,7 +96,8 @@ module CanvasSync::JobUniqueness
96
96
  end
97
97
 
98
98
  def unlock()
99
- locksmith.unlock
99
+ result = locksmith.unlock
100
+ CanvasSync::JobUniqueness.logger.debug { "Unlocked #{key} - (#{result || 'Not Unlocked!'})" }
100
101
  end
101
102
 
102
103
  def locksmith
@@ -1,3 +1,3 @@
1
1
  module CanvasSync
2
- VERSION = "0.22.0.beta4".freeze
2
+ VERSION = "0.22.0.beta5".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.0.beta4
4
+ version: 0.22.0.beta5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure CustomDev