switchman-inst-jobs 1.6.0 → 2.0.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f1525c9c7e0f08abefab65094c1479bed9c042585b627022ef5f3d97f05a798
|
4
|
+
data.tar.gz: d47f434d7869d9898e04222b232230c5b54b6c9c11dc390b387438d169dcec67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13ea49df7bfd9c7430c6d6261d11510697ce2c91e62e175cb94d12bc03eb0f6174b5153e35ddf1fe8357a5d20e389b13046aae42d9658016f3ecf7174691c45c
|
7
|
+
data.tar.gz: 7c4ab126b6527b164aa5f278dda90755f15a39d9bc0c2d94cbbabac3d7c3f7c493fcef5009f7d35f4d836c756538d563e00ed3cc96657a7e356ee860c726c7f3
|
data/lib/switchman_inst_jobs.rb
CHANGED
@@ -25,8 +25,8 @@ module SwitchmanInstJobs
|
|
25
25
|
::Object.include Delayed::MessageSending
|
26
26
|
end
|
27
27
|
|
28
|
-
def self.
|
29
|
-
::
|
28
|
+
def self.initialize_guard_rail
|
29
|
+
::GuardRail.singleton_class.prepend GuardRail::ClassMethods
|
30
30
|
end
|
31
31
|
|
32
32
|
def self.initialize_switchman
|
@@ -44,9 +44,9 @@ require 'switchman_inst_jobs/delayed/pool'
|
|
44
44
|
require 'switchman_inst_jobs/delayed/worker'
|
45
45
|
require 'switchman_inst_jobs/delayed/worker/health_check'
|
46
46
|
require 'switchman_inst_jobs/engine'
|
47
|
+
require 'switchman_inst_jobs/guard_rail'
|
47
48
|
require 'switchman_inst_jobs/jobs_migrator'
|
48
49
|
require 'switchman_inst_jobs/new_relic'
|
49
|
-
require 'switchman_inst_jobs/shackles'
|
50
50
|
require 'switchman_inst_jobs/switchman/database_server'
|
51
51
|
require 'switchman_inst_jobs/switchman/default_shard'
|
52
52
|
require 'switchman_inst_jobs/switchman/shard'
|
@@ -18,7 +18,7 @@ module SwitchmanInstJobs
|
|
18
18
|
enqueue_options = options.merge(
|
19
19
|
current_shard: current_shard
|
20
20
|
)
|
21
|
-
enqueue_job = -> { ::
|
21
|
+
enqueue_job = -> { ::GuardRail.activate(:master) { super(object, enqueue_options) } }
|
22
22
|
|
23
23
|
# Another dj shard must be currently manually activated, so just use that
|
24
24
|
# In general this will only happen in unusual circumstances like tests
|
@@ -34,8 +34,8 @@ module SwitchmanInstJobs
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
-
initializer 'sharding.
|
38
|
-
SwitchmanInstJobs.
|
37
|
+
initializer 'sharding.guard_rail', after: 'switchman.extend_guard_rail' do
|
38
|
+
SwitchmanInstJobs.initialize_guard_rail
|
39
39
|
end
|
40
40
|
|
41
41
|
initializer 'sharding.switchman' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: switchman-inst-jobs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Petty
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inst-jobs
|
@@ -68,22 +68,16 @@ dependencies:
|
|
68
68
|
name: switchman
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
|
-
- - "
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
version: '1.16'
|
74
|
-
- - "<"
|
71
|
+
- - "~>"
|
75
72
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
73
|
+
version: '2.0'
|
77
74
|
type: :runtime
|
78
75
|
prerelease: false
|
79
76
|
version_requirements: !ruby/object:Gem::Requirement
|
80
77
|
requirements:
|
81
|
-
- - "
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: '1.16'
|
84
|
-
- - "<"
|
78
|
+
- - "~>"
|
85
79
|
- !ruby/object:Gem::Version
|
86
|
-
version: '
|
80
|
+
version: '2.0'
|
87
81
|
- !ruby/object:Gem::Dependency
|
88
82
|
name: bundler
|
89
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -312,9 +306,9 @@ files:
|
|
312
306
|
- lib/switchman_inst_jobs/delayed/worker.rb
|
313
307
|
- lib/switchman_inst_jobs/delayed/worker/health_check.rb
|
314
308
|
- lib/switchman_inst_jobs/engine.rb
|
309
|
+
- lib/switchman_inst_jobs/guard_rail.rb
|
315
310
|
- lib/switchman_inst_jobs/jobs_migrator.rb
|
316
311
|
- lib/switchman_inst_jobs/new_relic.rb
|
317
|
-
- lib/switchman_inst_jobs/shackles.rb
|
318
312
|
- lib/switchman_inst_jobs/switchman/database_server.rb
|
319
313
|
- lib/switchman_inst_jobs/switchman/default_shard.rb
|
320
314
|
- lib/switchman_inst_jobs/switchman/shard.rb
|
@@ -333,14 +327,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
333
327
|
requirements:
|
334
328
|
- - ">="
|
335
329
|
- !ruby/object:Gem::Version
|
336
|
-
version: '2.
|
330
|
+
version: '2.5'
|
337
331
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
338
332
|
requirements:
|
339
333
|
- - ">="
|
340
334
|
- !ruby/object:Gem::Version
|
341
335
|
version: '0'
|
342
336
|
requirements: []
|
343
|
-
rubygems_version: 3.
|
337
|
+
rubygems_version: 3.1.2
|
344
338
|
signing_key:
|
345
339
|
specification_version: 4
|
346
340
|
summary: Switchman and Instructure Jobs compatibility gem.
|