canvas_sync 0.19.0.beta1 → 0.19.0.beta3

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.
@@ -64,7 +64,7 @@ RSpec.describe CanvasSync::JobBatches::Pool do
64
64
  end
65
65
 
66
66
  it "doesn't clean if pool has active" do
67
- subject.redis.sadd("#{subject.send(:redis_key)}-active", "blocked")
67
+ subject.redis.hset("#{subject.send(:redis_key)}-active", "blocked", "{}")
68
68
  expect(pool).to_not receive(:cleanup_redis)
69
69
  pool.cleanup_if_empty
70
70
  end
@@ -112,7 +112,7 @@ RSpec.describe CanvasSync::JobBatches::Pool do
112
112
 
113
113
  it "considers already active jobs against concurrency" do
114
114
  load_pool
115
- subject.redis.sadd("#{subject.send(:redis_key)}-active", "blocked")
115
+ subject.redis.hset("#{subject.send(:redis_key)}-active", "blocked", "{}")
116
116
  expect(CanvasSync::JobBatches::ChainBuilder).to receive(:enqueue_job).once
117
117
  expect(subject.send(:refill_allotment)).to eql 2
118
118
  expect(subject.pending_count).to eql 2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0.beta1
4
+ version: 0.19.0.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure CustomDev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-16 00:00:00.000000000 Z
11
+ date: 2024-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -413,6 +413,7 @@ files:
413
413
  - lib/canvas_sync/class_callback_executor.rb
414
414
  - lib/canvas_sync/concerns/ability_helper.rb
415
415
  - lib/canvas_sync/concerns/account/ancestry.rb
416
+ - lib/canvas_sync/concerns/account/base.rb
416
417
  - lib/canvas_sync/concerns/api_syncable.rb
417
418
  - lib/canvas_sync/concerns/auto_relations.rb
418
419
  - lib/canvas_sync/concerns/legacy_columns.rb