switchman-inst-jobs 4.0.6 → 4.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/20220328152900_add_failed_jobs_indicies.rb +12 -0
- data/db/migrate/20220519204546_add_requeued_job_id_to_failed_jobs.rb +7 -0
- data/lib/switchman_inst_jobs/delayed/backend/active_record/abstract_job.rb +3 -1
- data/lib/switchman_inst_jobs/version.rb +1 -1
- metadata +27 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae45b4d36d114de61b5363b41fc5f348be9fdf9afe9ecbdb3fdf0100516823b4
|
4
|
+
data.tar.gz: 0c59713f5158a5433fff01e20d95048407112c95a9314e94ad91a2062bd1affa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f45f7ef1557d133f39d6ea813e5c387bb4e675ba47b18f9fbeef1abaa34876fba81b805a50183b8f22d650c6ca891d8def35b17557f95e5820809ceb50e1a3d3
|
7
|
+
data.tar.gz: 7c6bffe4777abfd8bf9cbece96ba3a24aad5df73421511ff4c9b5b4ed6345b722033a49095dd021d8ed50db1456567fc1a83eae3b9e02c658d0be09563deef39
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class AddFailedJobsIndicies < ActiveRecord::Migration[5.2]
|
4
|
+
disable_ddl_transaction!
|
5
|
+
|
6
|
+
def change
|
7
|
+
add_index :failed_jobs, :failed_at, algorithm: :concurrently
|
8
|
+
add_index :failed_jobs, :strand, where: 'strand IS NOT NULL', algorithm: :concurrently
|
9
|
+
add_index :failed_jobs, :singleton, where: 'singleton IS NOT NULL', algorithm: :concurrently
|
10
|
+
add_index :failed_jobs, :tag, algorithm: :concurrently
|
11
|
+
end
|
12
|
+
end
|
@@ -6,7 +6,9 @@ module SwitchmanInstJobs
|
|
6
6
|
module ClassMethods
|
7
7
|
def current_switchman_shard
|
8
8
|
connected_to_stack.reverse_each do |hash|
|
9
|
-
|
9
|
+
if hash[:switchman_shard] && hash[:klasses].include?(connection_class_for_self)
|
10
|
+
return hash[:switchman_shard]
|
11
|
+
end
|
10
12
|
end
|
11
13
|
|
12
14
|
::ActiveRecord::Base.current_switchman_shard.delayed_jobs_shard
|
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.0.
|
4
|
+
version: 4.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Petty
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02
|
11
|
+
date: 2022-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inst-jobs
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
version: '6.1'
|
54
54
|
- - "<"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: '
|
56
|
+
version: '7.1'
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -63,27 +63,35 @@ dependencies:
|
|
63
63
|
version: '6.1'
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: '
|
66
|
+
version: '7.1'
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: switchman
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
71
|
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: '3.
|
74
|
-
- - ">="
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: 3.0.7
|
73
|
+
version: '3.1'
|
77
74
|
type: :runtime
|
78
75
|
prerelease: false
|
79
76
|
version_requirements: !ruby/object:Gem::Requirement
|
80
77
|
requirements:
|
81
78
|
- - "~>"
|
82
79
|
- !ruby/object:Gem::Version
|
83
|
-
version: '3.
|
84
|
-
|
80
|
+
version: '3.1'
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: appraisal
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - "~>"
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: 2.3.0
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - "~>"
|
85
93
|
- !ruby/object:Gem::Version
|
86
|
-
version: 3.0
|
94
|
+
version: 2.3.0
|
87
95
|
- !ruby/object:Gem::Dependency
|
88
96
|
name: bundler
|
89
97
|
requirement: !ruby/object:Gem::Requirement
|
@@ -280,21 +288,7 @@ dependencies:
|
|
280
288
|
- - "~>"
|
281
289
|
- !ruby/object:Gem::Version
|
282
290
|
version: '0.21'
|
283
|
-
|
284
|
-
name: wwtd
|
285
|
-
requirement: !ruby/object:Gem::Requirement
|
286
|
-
requirements:
|
287
|
-
- - "~>"
|
288
|
-
- !ruby/object:Gem::Version
|
289
|
-
version: '1.4'
|
290
|
-
type: :development
|
291
|
-
prerelease: false
|
292
|
-
version_requirements: !ruby/object:Gem::Requirement
|
293
|
-
requirements:
|
294
|
-
- - "~>"
|
295
|
-
- !ruby/object:Gem::Version
|
296
|
-
version: '1.4'
|
297
|
-
description:
|
291
|
+
description:
|
298
292
|
email:
|
299
293
|
- bpetty@instructure.com
|
300
294
|
executables: []
|
@@ -344,6 +338,8 @@ files:
|
|
344
338
|
- db/migrate/20220128084800_update_insert_trigger_for_singleton_unique_constraint_change.rb
|
345
339
|
- db/migrate/20220128084900_update_delete_trigger_for_singleton_unique_constraint_change.rb
|
346
340
|
- db/migrate/20220203063200_remove_old_singleton_index.rb
|
341
|
+
- db/migrate/20220328152900_add_failed_jobs_indicies.rb
|
342
|
+
- db/migrate/20220519204546_add_requeued_job_id_to_failed_jobs.rb
|
347
343
|
- lib/switchman-inst-jobs.rb
|
348
344
|
- lib/switchman_inst_jobs.rb
|
349
345
|
- lib/switchman_inst_jobs/active_record/connection_adapters/postgresql_adapter.rb
|
@@ -371,7 +367,7 @@ licenses:
|
|
371
367
|
metadata:
|
372
368
|
allowed_push_host: https://rubygems.org
|
373
369
|
rubygems_mfa_required: 'true'
|
374
|
-
post_install_message:
|
370
|
+
post_install_message:
|
375
371
|
rdoc_options: []
|
376
372
|
require_paths:
|
377
373
|
- lib
|
@@ -379,15 +375,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
379
375
|
requirements:
|
380
376
|
- - ">="
|
381
377
|
- !ruby/object:Gem::Version
|
382
|
-
version: '2.
|
378
|
+
version: '2.7'
|
383
379
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
384
380
|
requirements:
|
385
381
|
- - ">="
|
386
382
|
- !ruby/object:Gem::Version
|
387
383
|
version: '0'
|
388
384
|
requirements: []
|
389
|
-
rubygems_version: 3.1.
|
390
|
-
signing_key:
|
385
|
+
rubygems_version: 3.1.6
|
386
|
+
signing_key:
|
391
387
|
specification_version: 4
|
392
388
|
summary: Switchman and Instructure Jobs compatibility gem.
|
393
389
|
test_files: []
|