sidekiq 6.1.0 → 6.1.1
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/Changes.md +6 -0
- data/Ent-Changes.md +6 -0
- data/Gemfile.lock +1 -1
- data/Pro-Changes.md +5 -0
- data/lib/sidekiq/api.rb +5 -2
- data/lib/sidekiq/cli.rb +5 -10
- data/lib/sidekiq/fetch.rb +0 -2
- data/lib/sidekiq/version.rb +1 -1
- data/web/assets/javascripts/application.js +1 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e65c309b08d7da496e7181ff91980d43d8cf56e226fcd921c00e392dbecc22f
|
4
|
+
data.tar.gz: 45ff998fd67a0ca37c99176bc1a92c4160569106ff406d75c37e2a5968501d25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd592b7657c04d8ff7363157a965233a0e6a74889d7ae44a9bf398143ab7847776dbb52cd5e1328125afabe25be79f6c72ae9f03283672e49ae3868bc99037ec
|
7
|
+
data.tar.gz: 10b3e967c94933d8a8b269499a71d9690759504398855edde5197ef6f6648d26fa201e131d9c7650c64b6baa2b5306cd40fe618c50e122d11247d8cd2e7a8bbb
|
data/Changes.md
CHANGED
@@ -5,6 +5,12 @@
|
|
5
5
|
HEAD
|
6
6
|
---------
|
7
7
|
|
8
|
+
- Jobs are now sorted by age in the Busy Workers table. [#4641]
|
9
|
+
- Fix "check all" JS logic in Web UI [#4619]
|
10
|
+
|
11
|
+
6.1.0
|
12
|
+
---------
|
13
|
+
|
8
14
|
- Web UI - Dark Mode fixes [#4543, natematykiewicz]
|
9
15
|
- Ensure `Rack::ContentLength` is loaded as middleware for correct Web UI responses [#4541]
|
10
16
|
- Avoid exception dumping SSL store in Redis connection logging [#4532]
|
data/Ent-Changes.md
CHANGED
@@ -4,6 +4,12 @@
|
|
4
4
|
|
5
5
|
Please see [sidekiq.org](https://sidekiq.org) for more details and how to buy.
|
6
6
|
|
7
|
+
2.1.1
|
8
|
+
-------------
|
9
|
+
|
10
|
+
- Add optional **app preload** in swarm, saves even more memory [#4646]
|
11
|
+
- Fix incorrect queue tags in historical metrics [#4377]
|
12
|
+
|
7
13
|
2.1.0
|
8
14
|
-------------
|
9
15
|
|
data/Gemfile.lock
CHANGED
data/Pro-Changes.md
CHANGED
data/lib/sidekiq/api.rb
CHANGED
@@ -916,7 +916,8 @@ module Sidekiq
|
|
916
916
|
class Workers
|
917
917
|
include Enumerable
|
918
918
|
|
919
|
-
def each
|
919
|
+
def each(&block)
|
920
|
+
results = []
|
920
921
|
Sidekiq.redis do |conn|
|
921
922
|
procs = conn.sscan_each("processes").to_a
|
922
923
|
procs.sort.each do |key|
|
@@ -930,10 +931,12 @@ module Sidekiq
|
|
930
931
|
p = hsh["payload"]
|
931
932
|
# avoid breaking API, this is a side effect of the JSON optimization in #4316
|
932
933
|
hsh["payload"] = Sidekiq.load_json(p) if p.is_a?(String)
|
933
|
-
|
934
|
+
results << [key, tid, hsh]
|
934
935
|
end
|
935
936
|
end
|
936
937
|
end
|
938
|
+
|
939
|
+
results.sort_by { |(_, _, hsh)| hsh["run_at"] }.each(&block)
|
937
940
|
end
|
938
941
|
|
939
942
|
# Note that #size is only as accurate as Sidekiq's heartbeat,
|
data/lib/sidekiq/cli.rb
CHANGED
@@ -33,8 +33,9 @@ module Sidekiq
|
|
33
33
|
# Code within this method is not tested because it alters
|
34
34
|
# global process state irreversibly. PRs which improve the
|
35
35
|
# test coverage of Sidekiq::CLI are welcomed.
|
36
|
-
def run
|
37
|
-
|
36
|
+
def run(boot_app: true)
|
37
|
+
boot_application if boot_app
|
38
|
+
|
38
39
|
if environment == "development" && $stdout.tty? && Sidekiq.log_formatter.is_a?(Sidekiq::Logger::Formatters::Pretty)
|
39
40
|
print_banner
|
40
41
|
end
|
@@ -239,7 +240,7 @@ module Sidekiq
|
|
239
240
|
Sidekiq.options
|
240
241
|
end
|
241
242
|
|
242
|
-
def
|
243
|
+
def boot_application
|
243
244
|
ENV["RACK_ENV"] = ENV["RAILS_ENV"] = environment
|
244
245
|
|
245
246
|
if File.directory?(options[:require])
|
@@ -357,12 +358,6 @@ module Sidekiq
|
|
357
358
|
Sidekiq.logger.level = ::Logger::DEBUG if options[:verbose]
|
358
359
|
end
|
359
360
|
|
360
|
-
INTERNAL_OPTIONS = [
|
361
|
-
# These are options that are set internally and cannot be
|
362
|
-
# set via the config file or command line arguments.
|
363
|
-
:strict
|
364
|
-
]
|
365
|
-
|
366
361
|
def parse_config(path)
|
367
362
|
opts = YAML.load(ERB.new(File.read(path)).result) || {}
|
368
363
|
|
@@ -373,7 +368,7 @@ module Sidekiq
|
|
373
368
|
end
|
374
369
|
|
375
370
|
opts = opts.merge(opts.delete(environment.to_sym) || {})
|
376
|
-
opts.delete(
|
371
|
+
opts.delete(:strict)
|
377
372
|
|
378
373
|
parse_queues(opts, opts.delete(:queues) || [])
|
379
374
|
|
data/lib/sidekiq/fetch.rb
CHANGED
@@ -40,8 +40,6 @@ module Sidekiq
|
|
40
40
|
UnitOfWork.new(*work) if work
|
41
41
|
end
|
42
42
|
|
43
|
-
# By leaving this as a class method, it can be pluggable and used by the Manager actor. Making it
|
44
|
-
# an instance method will make it async to the Fetcher actor
|
45
43
|
def bulk_requeue(inprogress, options)
|
46
44
|
return if inprogress.empty?
|
47
45
|
|
data/lib/sidekiq/version.rb
CHANGED
@@ -24,12 +24,7 @@ $(function() {
|
|
24
24
|
}
|
25
25
|
|
26
26
|
$(document).on('click', '.check_all', function() {
|
27
|
-
|
28
|
-
if (checked == 'checked') {
|
29
|
-
$('input[type=checkbox]', $(this).closest('table')).attr('checked', checked);
|
30
|
-
} else {
|
31
|
-
$('input[type=checkbox]', $(this).closest('table')).removeAttr('checked');
|
32
|
-
}
|
27
|
+
$('input[type=checkbox]', $(this).closest('table')).prop('checked', this.checked);
|
33
28
|
});
|
34
29
|
|
35
30
|
$(document).on("click", "[data-confirm]", function() {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.1.
|
4
|
+
version: 6.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Perham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|