sidekiq 7.1.1 → 7.1.2
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 +7 -0
- data/lib/sidekiq/client.rb +2 -0
- data/lib/sidekiq/config.rb +5 -1
- data/lib/sidekiq/rails.rb +4 -0
- data/lib/sidekiq/version.rb +1 -1
- data/lib/sidekiq/web.rb +1 -1
- 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: 587dc2a304b24daba86943907fe6b0285ecd302119e900e68403fcf0dedff163
|
4
|
+
data.tar.gz: 713489d61003baf22b07879e959048bede62a5b661cf37a6c43540cd3cd59eac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 026b2dd393d8e9774f1afa6fe4df9cfca70520e84a0d566dde668e535809492476004f205668d16bbe2d5f0111fb4d51a4ddddd60bfd6a1c90d906bcb50b5c92
|
7
|
+
data.tar.gz: 5b6769ef293543a4d7003e870c5ed5b1d9b7d44a941c4fc446afd16531fc1eaae2f684359fb7c093eb1761c517ff31c106f247c17a8e2808bb629adf47061a62
|
data/Changes.md
CHANGED
@@ -2,6 +2,13 @@
|
|
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.1.2
|
6
|
+
----------
|
7
|
+
|
8
|
+
- Mark Web UI assets as private so CDNs won't cache them [#5936]
|
9
|
+
- Fix stackoverflow when using Oj and the JSON log formatter [#5920]
|
10
|
+
- Remove spurious `enqueued_at` from scheduled ActiveJobs [#5937]
|
11
|
+
|
5
12
|
7.1.1
|
6
13
|
----------
|
7
14
|
|
data/lib/sidekiq/client.rb
CHANGED
@@ -246,6 +246,8 @@ module Sidekiq
|
|
246
246
|
if payloads.first.key?("at")
|
247
247
|
conn.zadd("schedule", payloads.flat_map { |hash|
|
248
248
|
at = hash.delete("at").to_s
|
249
|
+
# ActiveJob sets this but the job has not been enqueued yet
|
250
|
+
hash.delete("enqueued_at")
|
249
251
|
[at, Sidekiq.dump_json(hash)]
|
250
252
|
})
|
251
253
|
else
|
data/lib/sidekiq/config.rb
CHANGED
@@ -56,6 +56,10 @@ module Sidekiq
|
|
56
56
|
def_delegators :@options, :[], :[]=, :fetch, :key?, :has_key?, :merge!
|
57
57
|
attr_reader :capsules
|
58
58
|
|
59
|
+
def to_json(*)
|
60
|
+
Sidekiq.dump_json(@options)
|
61
|
+
end
|
62
|
+
|
59
63
|
# LEGACY: edits the default capsule
|
60
64
|
# config.concurrency = 5
|
61
65
|
def concurrency=(val)
|
@@ -263,7 +267,7 @@ module Sidekiq
|
|
263
267
|
ctx[:_config] = self
|
264
268
|
@options[:error_handlers].each do |handler|
|
265
269
|
handler.call(ex, ctx)
|
266
|
-
rescue => e
|
270
|
+
rescue Exception => e
|
267
271
|
l = logger
|
268
272
|
l.error "!!! ERROR HANDLER THREW AN ERROR !!!"
|
269
273
|
l.error e
|
data/lib/sidekiq/rails.rb
CHANGED
data/lib/sidekiq/version.rb
CHANGED
data/lib/sidekiq/web.rb
CHANGED
@@ -137,7 +137,7 @@ module Sidekiq
|
|
137
137
|
m = middlewares
|
138
138
|
|
139
139
|
rules = []
|
140
|
-
rules = [[:all, {"
|
140
|
+
rules = [[:all, {"Cache-Control" => "private, max-age=86400"}]] unless ENV["SIDEKIQ_WEB_TESTING"]
|
141
141
|
|
142
142
|
::Rack::Builder.new do
|
143
143
|
use Rack::Static, urls: ["/stylesheets", "/images", "/javascripts"],
|
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.1.
|
4
|
+
version: 7.1.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: 2023-
|
11
|
+
date: 2023-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis-client
|