canvas_sync 0.19.0.beta1 → 0.19.0.beta3
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/concerns/account/base.rb +15 -0
- data/lib/canvas_sync/job_batches/jobs/managed_batch_job.rb +1 -1
- data/lib/canvas_sync/job_batches/pool.rb +8 -6
- data/lib/canvas_sync/job_batches/pool_refill.lua +1 -1
- data/lib/canvas_sync/job_batches/sidekiq/web/views/pool.erb +44 -1
- data/lib/canvas_sync/job_batches/sidekiq/web.rb +2 -0
- data/lib/canvas_sync/version.rb +1 -1
- data/spec/dummy/log/test.log +6519 -0
- data/spec/job_batching/pool_spec.rb +2 -2
- metadata +3 -2
@@ -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.
|
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.
|
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.
|
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:
|
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
|