sidekiq 4.2.10 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sidekiq might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/5.0-Upgrade.md +56 -0
- data/Changes.md +24 -1
- data/Ent-Changes.md +3 -2
- data/Pro-Changes.md +6 -2
- data/README.md +2 -2
- data/bin/sidekiqctl +1 -1
- data/bin/sidekiqload +3 -8
- data/lib/sidekiq/api.rb +33 -14
- data/lib/sidekiq/cli.rb +12 -5
- data/lib/sidekiq/client.rb +15 -13
- data/lib/sidekiq/delay.rb +21 -0
- data/lib/sidekiq/extensions/generic_proxy.rb +7 -1
- data/lib/sidekiq/job_logger.rb +27 -0
- data/lib/sidekiq/job_retry.rb +235 -0
- data/lib/sidekiq/launcher.rb +1 -7
- data/lib/sidekiq/middleware/server/active_record.rb +9 -0
- data/lib/sidekiq/processor.rb +68 -31
- data/lib/sidekiq/rails.rb +2 -65
- data/lib/sidekiq/redis_connection.rb +1 -1
- data/lib/sidekiq/testing.rb +1 -1
- data/lib/sidekiq/version.rb +1 -1
- data/lib/sidekiq/web/action.rb +0 -4
- data/lib/sidekiq/web/application.rb +6 -11
- data/lib/sidekiq/web/helpers.rb +9 -1
- data/lib/sidekiq/worker.rb +34 -11
- data/lib/sidekiq.rb +4 -13
- data/sidekiq.gemspec +1 -1
- data/web/assets/javascripts/dashboard.js +10 -12
- data/web/assets/stylesheets/application-rtl.css +246 -0
- data/web/assets/stylesheets/application.css +336 -4
- data/web/assets/stylesheets/bootstrap-rtl.min.css +9 -0
- data/web/locales/ar.yml +80 -0
- data/web/locales/fa.yml +1 -0
- data/web/locales/he.yml +79 -0
- data/web/locales/ur.yml +80 -0
- data/web/views/_footer.erb +1 -1
- data/web/views/_nav.erb +1 -1
- data/web/views/_paging.erb +1 -1
- data/web/views/busy.erb +4 -4
- data/web/views/dashboard.erb +1 -1
- data/web/views/layout.erb +10 -1
- data/web/views/morgue.erb +4 -4
- data/web/views/queue.erb +7 -7
- data/web/views/retries.erb +5 -5
- data/web/views/scheduled.erb +2 -2
- metadata +15 -8
- data/lib/sidekiq/middleware/server/logging.rb +0 -31
- data/lib/sidekiq/middleware/server/retry_jobs.rb +0 -205
data/lib/sidekiq.rb
CHANGED
@@ -1,17 +1,18 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
# frozen_string_literal: true
|
3
3
|
require 'sidekiq/version'
|
4
|
-
fail "Sidekiq #{Sidekiq::VERSION} does not support Ruby versions below 2.
|
4
|
+
fail "Sidekiq #{Sidekiq::VERSION} does not support Ruby versions below 2.2.2." if RUBY_PLATFORM != 'java' && RUBY_VERSION < '2.2.2'
|
5
5
|
|
6
6
|
require 'sidekiq/logging'
|
7
7
|
require 'sidekiq/client'
|
8
8
|
require 'sidekiq/worker'
|
9
9
|
require 'sidekiq/redis_connection'
|
10
|
+
require 'sidekiq/delay'
|
10
11
|
|
11
12
|
require 'json'
|
12
13
|
|
13
14
|
module Sidekiq
|
14
|
-
NAME = 'Sidekiq'
|
15
|
+
NAME = 'Sidekiq'.freeze
|
15
16
|
LICENSE = 'See LICENSE and the LGPL-3.0 for licensing details.'
|
16
17
|
|
17
18
|
DEFAULTS = {
|
@@ -33,7 +34,6 @@ module Sidekiq
|
|
33
34
|
dead_max_jobs: 10_000,
|
34
35
|
dead_timeout_in_seconds: 180 * 24 * 60 * 60, # 6 months
|
35
36
|
reloader: proc { |&block| block.call },
|
36
|
-
executor: proc { |&block| block.call },
|
37
37
|
}
|
38
38
|
|
39
39
|
DEFAULT_WORKER_OPTIONS = {
|
@@ -145,13 +145,7 @@ module Sidekiq
|
|
145
145
|
end
|
146
146
|
|
147
147
|
def self.default_server_middleware
|
148
|
-
|
149
|
-
require 'sidekiq/middleware/server/logging'
|
150
|
-
|
151
|
-
Middleware::Chain.new do |m|
|
152
|
-
m.add Middleware::Server::RetryJobs
|
153
|
-
m.add Middleware::Server::Logging
|
154
|
-
end
|
148
|
+
Middleware::Chain.new
|
155
149
|
end
|
156
150
|
|
157
151
|
def self.default_worker_options=(hash)
|
@@ -231,7 +225,4 @@ module Sidekiq
|
|
231
225
|
|
232
226
|
end
|
233
227
|
|
234
|
-
require 'sidekiq/extensions/class_methods'
|
235
|
-
require 'sidekiq/extensions/action_mailer'
|
236
|
-
require 'sidekiq/extensions/active_record'
|
237
228
|
require 'sidekiq/rails' if defined?(::Rails::Engine)
|
data/sidekiq.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.name = "sidekiq"
|
16
16
|
gem.require_paths = ["lib"]
|
17
17
|
gem.version = Sidekiq::VERSION
|
18
|
-
gem.add_dependency 'redis', '~> 3.
|
18
|
+
gem.add_dependency 'redis', '~> 3.3', '>= 3.3.3'
|
19
19
|
gem.add_dependency 'connection_pool', '~> 2.2', '>= 2.2.0'
|
20
20
|
gem.add_dependency 'concurrent-ruby', '~> 1.0'
|
21
21
|
gem.add_dependency 'rack-protection', '>= 1.5.0'
|