sidekiq-throttled 0.18.0 → 1.0.0.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{README.md → README.adoc} +95 -114
- data/lib/sidekiq/throttled/basic_fetch.rb +55 -0
- data/lib/sidekiq/throttled/fetch.rb +3 -87
- data/lib/sidekiq/throttled/job.rb +1 -1
- data/lib/sidekiq/throttled/middleware.rb +3 -1
- data/lib/sidekiq/throttled/registry.rb +2 -5
- data/lib/sidekiq/throttled/strategy/concurrency.rb +2 -4
- data/lib/sidekiq/throttled/strategy/threshold.rb +2 -4
- data/lib/sidekiq/throttled/strategy.rb +10 -10
- data/lib/sidekiq/throttled/strategy_collection.rb +1 -1
- data/lib/sidekiq/throttled/version.rb +1 -1
- data/lib/sidekiq/throttled/web.rb +2 -45
- data/lib/sidekiq/throttled/worker.rb +1 -1
- data/lib/sidekiq/throttled.rb +16 -50
- metadata +17 -77
- data/.coveralls.yml +0 -1
- data/.github/dependabot.yml +0 -12
- data/.github/workflows/ci.yml +0 -52
- data/.gitignore +0 -12
- data/.rspec +0 -5
- data/.rubocop.yml +0 -20
- data/.rubocop_todo.yml +0 -68
- data/.travis.yml +0 -37
- data/.yardopts +0 -1
- data/Appraisals +0 -9
- data/CHANGES.md +0 -318
- data/Gemfile +0 -34
- data/Guardfile +0 -25
- data/Rakefile +0 -27
- data/gemfiles/sidekiq_6.4.gemfile +0 -33
- data/gemfiles/sidekiq_6.5.gemfile +0 -33
- data/lib/sidekiq/throttled/communicator/callbacks.rb +0 -72
- data/lib/sidekiq/throttled/communicator/exception_handler.rb +0 -25
- data/lib/sidekiq/throttled/communicator/listener.rb +0 -109
- data/lib/sidekiq/throttled/communicator.rb +0 -116
- data/lib/sidekiq/throttled/expirable_list.rb +0 -70
- data/lib/sidekiq/throttled/fetch/unit_of_work.rb +0 -83
- data/lib/sidekiq/throttled/patches/queue.rb +0 -18
- data/lib/sidekiq/throttled/queue_name.rb +0 -46
- data/lib/sidekiq/throttled/queues_pauser.rb +0 -152
- data/lib/sidekiq/throttled/testing.rb +0 -12
- data/lib/sidekiq/throttled/utils.rb +0 -19
- data/lib/sidekiq/throttled/web/queues.html.erb +0 -49
- data/lib/sidekiq/throttled/web/summary_fix.js +0 -10
- data/lib/sidekiq/throttled/web/summary_fix.rb +0 -35
- data/rubocop/layout.yml +0 -24
- data/rubocop/lint.yml +0 -41
- data/rubocop/metrics.yml +0 -4
- data/rubocop/performance.yml +0 -25
- data/rubocop/rspec.yml +0 -3
- data/rubocop/style.yml +0 -84
- data/sidekiq-throttled.gemspec +0 -36
- /data/{LICENSE.md → LICENSE} +0 -0
data/rubocop/performance.yml
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
Performance/AncestorsInclude:
|
2
|
-
Enabled: true
|
3
|
-
|
4
|
-
Performance/BigDecimalWithNumericArgument:
|
5
|
-
Enabled: true
|
6
|
-
|
7
|
-
Performance/RedundantSortBlock:
|
8
|
-
Enabled: true
|
9
|
-
|
10
|
-
Performance/RedundantStringChars:
|
11
|
-
Enabled: true
|
12
|
-
|
13
|
-
Performance/ReverseFirst:
|
14
|
-
Enabled: true
|
15
|
-
|
16
|
-
Performance/SortReverse:
|
17
|
-
Enabled: true
|
18
|
-
|
19
|
-
Performance/Squeeze:
|
20
|
-
Enabled: true
|
21
|
-
|
22
|
-
Performance/StringInclude:
|
23
|
-
Enabled: true
|
24
|
-
|
25
|
-
|
data/rubocop/rspec.yml
DELETED
data/rubocop/style.yml
DELETED
@@ -1,84 +0,0 @@
|
|
1
|
-
Style/AccessorGrouping:
|
2
|
-
Enabled: true
|
3
|
-
|
4
|
-
Style/ArrayCoercion:
|
5
|
-
Enabled: true
|
6
|
-
|
7
|
-
Style/BisectedAttrAccessor:
|
8
|
-
Enabled: true
|
9
|
-
|
10
|
-
Style/CaseLikeIf:
|
11
|
-
Enabled: true
|
12
|
-
|
13
|
-
Style/Documentation:
|
14
|
-
Enabled: false
|
15
|
-
|
16
|
-
Style/ExplicitBlockArgument:
|
17
|
-
Enabled: true
|
18
|
-
|
19
|
-
Style/ExponentialNotation:
|
20
|
-
Enabled: true
|
21
|
-
|
22
|
-
Style/GlobalStdStream:
|
23
|
-
Enabled: true
|
24
|
-
|
25
|
-
Style/HashAsLastArrayItem:
|
26
|
-
Enabled: true
|
27
|
-
|
28
|
-
Style/HashEachMethods:
|
29
|
-
Enabled: true
|
30
|
-
|
31
|
-
Style/HashLikeCase:
|
32
|
-
Enabled: true
|
33
|
-
|
34
|
-
Style/HashSyntax:
|
35
|
-
Enabled: true
|
36
|
-
EnforcedStyle: hash_rockets
|
37
|
-
|
38
|
-
Style/HashTransformKeys:
|
39
|
-
Enabled: true
|
40
|
-
|
41
|
-
Style/HashTransformValues:
|
42
|
-
Enabled: true
|
43
|
-
|
44
|
-
Style/OptionalBooleanParameter:
|
45
|
-
Enabled: true
|
46
|
-
|
47
|
-
Style/RedundantAssignment:
|
48
|
-
Enabled: true
|
49
|
-
|
50
|
-
Style/RedundantFetchBlock:
|
51
|
-
Enabled: true
|
52
|
-
|
53
|
-
Style/RedundantFileExtensionInRequire:
|
54
|
-
Enabled: true
|
55
|
-
|
56
|
-
Style/RedundantRegexpCharacterClass:
|
57
|
-
Enabled: true
|
58
|
-
|
59
|
-
Style/RedundantRegexpEscape:
|
60
|
-
Enabled: true
|
61
|
-
|
62
|
-
Style/RegexpLiteral:
|
63
|
-
Enabled: true
|
64
|
-
EnforcedStyle: percent_r
|
65
|
-
|
66
|
-
Style/RescueStandardError:
|
67
|
-
Enabled: true
|
68
|
-
EnforcedStyle: implicit
|
69
|
-
|
70
|
-
Style/SingleArgumentDig:
|
71
|
-
Enabled: true
|
72
|
-
|
73
|
-
Style/SlicingWithRange:
|
74
|
-
Enabled: true
|
75
|
-
|
76
|
-
Style/StringConcatenation:
|
77
|
-
Enabled: true
|
78
|
-
|
79
|
-
Style/StringLiterals:
|
80
|
-
Enabled: true
|
81
|
-
EnforcedStyle: double_quotes
|
82
|
-
|
83
|
-
Style/YodaCondition:
|
84
|
-
Enabled: false
|
data/sidekiq-throttled.gemspec
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
lib = File.expand_path("lib", __dir__)
|
4
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
|
6
|
-
require "sidekiq/throttled/version"
|
7
|
-
|
8
|
-
Gem::Specification.new do |spec|
|
9
|
-
spec.name = "sidekiq-throttled"
|
10
|
-
spec.version = Sidekiq::Throttled::VERSION
|
11
|
-
spec.authors = ["Alexey Zapparov"]
|
12
|
-
spec.email = ["alexey@zapparov.com"]
|
13
|
-
|
14
|
-
spec.summary = "Concurrency and threshold throttling for Sidekiq."
|
15
|
-
spec.description = "Concurrency and threshold throttling for Sidekiq."
|
16
|
-
spec.homepage = "https://github.com/ixti/sidekiq-throttled"
|
17
|
-
spec.license = "MIT"
|
18
|
-
|
19
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
20
|
-
f.match %r{^(test|spec|features)/}
|
21
|
-
end
|
22
|
-
|
23
|
-
spec.metadata["rubygems_mfa_required"] = "true"
|
24
|
-
|
25
|
-
spec.bindir = "exe"
|
26
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
|
-
spec.require_paths = ["lib"]
|
28
|
-
|
29
|
-
spec.required_ruby_version = ">= 2.7"
|
30
|
-
|
31
|
-
spec.add_runtime_dependency "concurrent-ruby"
|
32
|
-
spec.add_runtime_dependency "redis-prescription", "~> 2.2"
|
33
|
-
spec.add_runtime_dependency "sidekiq", "~> 6.4"
|
34
|
-
|
35
|
-
spec.add_development_dependency "bundler", ">= 2.0"
|
36
|
-
end
|
/data/{LICENSE.md → LICENSE}
RENAMED
File without changes
|