canvas_sync 0.22.0.beta5 → 0.22.0.beta7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ebf3daf8b5f039ca427bd4f81d9aab1bdeb1ad38d24fcd2be4abd8991d93a30
4
- data.tar.gz: 676a621e3e4fc0eac6a059a290a9ae7c32d9fe37da700f8d3833e4c98ad91715
3
+ metadata.gz: 460a37fe879ff078150579638df606c33dfd35870b69955c42dc7bee7afb4833
4
+ data.tar.gz: e02f9568f6d80f0f0bf4ab6ff21800ed8bcd36d5cd1803f03cf6a186b3fda690
5
5
  SHA512:
6
- metadata.gz: c39d0c02fada82aedbf280e17f5b5c7ac4c80ce9372fb3d13034ed72d6ca2a20760f6b7e1daa0c38e45afaadf8db64b48d45d7c1e559bef8fb48e73acaff3e3e
7
- data.tar.gz: 89f8c4ed29c80a2b5a8587636741860736690f62bb2a9a86c52318a117152f02dd2fc15741856332eb2e692c36b64396b811861aa2dd8f4b2cbf506407c59ea8
6
+ metadata.gz: 1a08031744764b9f14a8da562ffee5ca83a85e4efa9b5a5b9725605cce53853b90d3dfd9b01bb5ec5ac5aeb248bc6be88fe07b1de9b5b2e5b0b6c4d25d8cd942
7
+ data.tar.gz: a71f36915f50bbb74dc746ac2f9c7a8f3489995f8dc67648a58ceb20e85cd71c17072b7b967e415c1be4d3f349c378afcc7b1ed132e2682711cca1c98958d7bc
@@ -71,8 +71,10 @@ module CanvasSync::JobUniqueness
71
71
 
72
72
  def self.internal_batch_callback(batch_status, opts)
73
73
  CanvasSync::JobUniqueness.logger.debug("Received Batch(#{batch_status.bid}) callback for #{opts[:lock_strategy]} #{opts[:lock_key]} - #{opts[:event]}")
74
+ CanvasSync::JobUniqueness.logger.debug("Context data: #{opts[:lock_context]}")
74
75
  strategy_class = opts[:lock_strategy].constantize
75
76
  lock_context = LockContext.from_serialized(opts[:lock_context])
77
+ CanvasSync::JobUniqueness.logger.debug("Rehydrated LockContext: #{lock_context.job_id} #{lock_context.debug_data}")
76
78
  strategy = strategy_class.new(lock_context)
77
79
  # TODO Should this route through LockContext#handle_lifecycle!?
78
80
  strategy.batch_callback(opts[:event].to_sym, batch_status)
@@ -96,6 +98,7 @@ module CanvasSync::JobUniqueness
96
98
  end
97
99
 
98
100
  def unlock()
101
+ CanvasSync::JobUniqueness.logger.debug { "Trying to unlock #{key} for JID #{lock_context.job_id}" }
99
102
  result = locksmith.unlock
100
103
  CanvasSync::JobUniqueness.logger.debug { "Unlocked #{key} - (#{result || 'Not Unlocked!'})" }
101
104
  end
@@ -1,3 +1,3 @@
1
1
  module CanvasSync
2
- VERSION = "0.22.0.beta5".freeze
2
+ VERSION = "0.22.0.beta7".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.beta5
4
+ version: 0.22.0.beta7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure CustomDev