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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e22aedd56d4f0b3a30fc73ceec6d246813b1b7e2f233dc2e19fe435c1689abd8
4
- data.tar.gz: 8beb1e49cc43aa6f179f72cbd191832151facb48f01d67b4b6c979aa63cbbf1a
3
+ metadata.gz: 3e65c309b08d7da496e7181ff91980d43d8cf56e226fcd921c00e392dbecc22f
4
+ data.tar.gz: 45ff998fd67a0ca37c99176bc1a92c4160569106ff406d75c37e2a5968501d25
5
5
  SHA512:
6
- metadata.gz: 8ad1d321a4e319cf7760f0984085c635cb98fd9aef600665bf90b7a301caa53e9d9fb42dc064196e083d115fd6719eaa1445263c32e4906c6c9de4789970c9e0
7
- data.tar.gz: 4a4e5d184b7ba0cd8dcba3f27b8dc7ec65138ba1b34cd5414e2e6610f9a590c9bcae09940d96b960deb9db3d25b7b0314b1ff0c630b877e10ae2461b6fe645be
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]
@@ -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
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sidekiq (6.1.0)
4
+ sidekiq (6.1.1)
5
5
  connection_pool (>= 2.2.2)
6
6
  rack (~> 2.0)
7
7
  redis (>= 4.2.0)
@@ -4,6 +4,11 @@
4
4
 
5
5
  Please see [sidekiq.org](https://sidekiq.org/) for more details and how to buy.
6
6
 
7
+ 5.1.1
8
+ ---------
9
+
10
+ - Fix broken basic fetcher [#4616]
11
+
7
12
  5.1.0
8
13
  ---------
9
14
 
@@ -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
- yield key, tid, hsh
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,
@@ -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
- boot_system
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 boot_system
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(*INTERNAL_OPTIONS)
371
+ opts.delete(:strict)
377
372
 
378
373
  parse_queues(opts, opts.delete(:queues) || [])
379
374
 
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sidekiq
4
- VERSION = "6.1.0"
4
+ VERSION = "6.1.1"
5
5
  end
@@ -24,12 +24,7 @@ $(function() {
24
24
  }
25
25
 
26
26
  $(document).on('click', '.check_all', function() {
27
- var checked = $(this).attr('checked');
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.0
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-06-30 00:00:00.000000000 Z
11
+ date: 2020-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis