sidekiq 7.3.1 → 7.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f5b830734b904971e3969d347d0447564003a2afc743d681df9c2285e5e8681
4
- data.tar.gz: 462e557d3093492eed4f4fb234f6015e52bb024e44398e617e5d8b6baebdf1ac
3
+ metadata.gz: ce4653de61d5b923ce7556490e95cf6918dd1c94340417ec4093f11cc8ceda39
4
+ data.tar.gz: e9faa23d4535a5b647c5dc86c28ce64317ea964f44faa9141b5a883f77b80dcd
5
5
  SHA512:
6
- metadata.gz: d2b3bac182022693b4de09fe220fdae54a2e9e1ac68f0ce5d12d8e5b08f55d873cd62d7de4b40f0170e918f79c389501d29cc57ea691e78c98d9bb9ba4d4b709
7
- data.tar.gz: 57d2312adca3de676e9c5fb30cd5ee8ed44270a0e0f460b2720d26cf5771c3144a7815db7694563d4d1d34185d6c3382448cdfa750a5a72449ffdcba1c889ab1
6
+ metadata.gz: 5fa259f415261689936b4f03f179198ea6849fbe63b932b5836fa800714055ce574a80a56462355a92d125440362957ebf02e5bafbde55fe8211805c80573ae5
7
+ data.tar.gz: 0aaf341ae13c377e6f944344e0feef246e3450ae9eb0d74fcbf8e932e9c9fcf0d8f0dd56ce374064d4f51c4d99f4c306560c3283db27f70ae6aa5af346d83ec3
data/Changes.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  [Sidekiq Changes](https://github.com/sidekiq/sidekiq/blob/main/Changes.md) | [Sidekiq Pro Changes](https://github.com/sidekiq/sidekiq/blob/main/Pro-Changes.md) | [Sidekiq Enterprise Changes](https://github.com/sidekiq/sidekiq/blob/main/Ent-Changes.md)
4
4
 
5
+ 7.3.2
6
+ ----------
7
+
8
+ - Adjust ActiveRecord batch iteration to restart an interrupted batch from the beginning.
9
+ Each batch should be processed as a single transaction in order to be idempotent. [#6405]
10
+ - Fix typo in S::DeadSet#kill [#6397]
11
+ - Fix CSS issue with bottom bar in Web UI [#6414]
12
+
5
13
  7.3.1
6
14
  ----------
7
15
 
data/lib/sidekiq/api.rb CHANGED
@@ -813,8 +813,8 @@ module Sidekiq
813
813
 
814
814
  # Add the given job to the Dead set.
815
815
  # @param message [String] the job data as JSON
816
- # @option opts :notify_failure [Boolean] (true) Whether death handlers should be called
817
- # @option opts :ex [Exception] (RuntimeError) An exception to pass to the death handlers
816
+ # @option opts [Boolean] :notify_failure (true) Whether death handlers should be called
817
+ # @option opts [Exception] :ex (RuntimeError) An exception to pass to the death handlers
818
818
  def kill(message, opts = {})
819
819
  now = Time.now.to_f
820
820
  Sidekiq.redis do |conn|
@@ -828,7 +828,7 @@ module Sidekiq
828
828
  if opts[:notify_failure] != false
829
829
  job = Sidekiq.load_json(message)
830
830
  if opts[:ex]
831
- ex = opt[:ex]
831
+ ex = opts[:ex]
832
832
  else
833
833
  ex = RuntimeError.new("Job killed by API")
834
834
  ex.set_backtrace(caller)
@@ -22,7 +22,7 @@ module Sidekiq
22
22
  def batches
23
23
  Enumerator.new(-> { @relation.count }) do |yielder|
24
24
  @relation.find_in_batches(**@options, start: @cursor) do |batch|
25
- yielder.yield(batch, batch.last.id)
25
+ yielder.yield(batch, batch.first.id)
26
26
  end
27
27
  end
28
28
  end
@@ -35,8 +35,8 @@ module Sidekiq
35
35
  options[:of] ||= options.delete(:batch_size)
36
36
 
37
37
  @relation.in_batches(**options, start: @cursor) do |relation|
38
- last_record = relation.last
39
- yielder.yield(relation, last_record.id)
38
+ first_record = relation.first
39
+ yielder.yield(relation, first_record.id)
40
40
  end
41
41
  end
42
42
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sidekiq
4
- VERSION = "7.3.1"
4
+ VERSION = "7.3.2"
5
5
  MAJOR = 7
6
6
  end
@@ -634,12 +634,8 @@ div.interval-slider input {
634
634
  .container {
635
635
  padding: 0;
636
636
  }
637
- .navbar-fixed-bottom {
638
- position: relative;
639
- top: auto;
640
- }
641
637
  @media (max-width: 767px) {
642
- .navbar-fixed-top {
638
+ .navbar-fixed-top, .navbar-fixed-bottom {
643
639
  position: relative;
644
640
  top: auto;
645
641
  }
@@ -652,18 +648,18 @@ div.interval-slider input {
652
648
 
653
649
  @media (min-width: 768px) {
654
650
  .redis-url {
655
- max-width: 250px;
651
+ max-width: 160px;
656
652
  }
657
653
  }
658
654
 
659
655
  @media (min-width: 992px) {
660
656
  .redis-url {
661
- max-width: 490px;
657
+ max-width: 380px;
662
658
  }
663
659
  }
664
660
  @media (min-width: 1200px) {
665
661
  .redis-url {
666
- max-width: 600px;
662
+ max-width: 580px;
667
663
  }
668
664
  }
669
665
 
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: 7.3.1
4
+ version: 7.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Perham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-15 00:00:00.000000000 Z
11
+ date: 2024-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis-client