sidekiq 8.0.1 → 8.0.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 +4 -4
- data/Changes.md +6 -0
- data/lib/sidekiq/api.rb +2 -2
- data/lib/sidekiq/config.rb +2 -1
- data/lib/sidekiq/embedded.rb +1 -1
- data/lib/sidekiq/launcher.rb +1 -0
- data/lib/sidekiq/version.rb +1 -1
- data/lib/sidekiq/web/action.rb +3 -3
- data/lib/sidekiq/web/application.rb +3 -5
- data/web/views/layout.erb +7 -8
- 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: a2128fafa84e48bfd4cad6155e9dcddaab93bc68152b28d6c27156cf84490cf9
|
4
|
+
data.tar.gz: 346e2bff46bcae590efbdab4bf4c0942994a70fd4360cb395efffaac02e9ee02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 318665d5dd278811f1ce98923fac64fbc79d78f38bde1e54c92f975f4bce24a24ef43a7c15eda03fc54caa39f1bddd1e932aa98f866a6983d4d92cf2ec587a6d
|
7
|
+
data.tar.gz: 16b597d7ff91c948bd4868c85386387a4f306f6dfce260d9141db485e9252845c38c2195ee6ec7b4490e94c950d66de43a4a429feaacf37c9b06d3be4ed9ed14
|
data/Changes.md
CHANGED
@@ -2,6 +2,12 @@
|
|
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
|
+
8.0.2
|
6
|
+
----------
|
7
|
+
|
8
|
+
- Add `on(:exit)` event to run code right before the Sidekiq process exits [#6637]
|
9
|
+
- Metrics page crashes with Rack 3.1+ [#6646]
|
10
|
+
|
5
11
|
8.0.1
|
6
12
|
----------
|
7
13
|
|
data/lib/sidekiq/api.rb
CHANGED
@@ -1166,8 +1166,8 @@ module Sidekiq
|
|
1166
1166
|
# works.each do |process_id, thread_id, work|
|
1167
1167
|
# # process_id is a unique identifier per Sidekiq process
|
1168
1168
|
# # thread_id is a unique identifier per thread
|
1169
|
-
# # work is a
|
1170
|
-
# #
|
1169
|
+
# # work is a `Sidekiq::Work` instance that has the following accessor methods.
|
1170
|
+
# # [work.queue, work.run_at, work.payload]
|
1171
1171
|
# # run_at is an epoch Integer.
|
1172
1172
|
# end
|
1173
1173
|
#
|
data/lib/sidekiq/config.rb
CHANGED
@@ -27,6 +27,7 @@ module Sidekiq
|
|
27
27
|
startup: [],
|
28
28
|
quiet: [],
|
29
29
|
shutdown: [],
|
30
|
+
exit: [],
|
30
31
|
# triggers when we fire the first heartbeat on startup OR repairing a network partition
|
31
32
|
heartbeat: [],
|
32
33
|
# triggers on EVERY heartbeat call, every 10 seconds
|
@@ -258,7 +259,7 @@ module Sidekiq
|
|
258
259
|
end
|
259
260
|
|
260
261
|
# Register a block to run at a point in the Sidekiq lifecycle.
|
261
|
-
# :startup, :quiet or :
|
262
|
+
# :startup, :quiet, :shutdown, or :exit are valid events.
|
262
263
|
#
|
263
264
|
# Sidekiq.configure_server do |config|
|
264
265
|
# config.on(:shutdown) do
|
data/lib/sidekiq/embedded.rb
CHANGED
@@ -43,7 +43,7 @@ module Sidekiq
|
|
43
43
|
# fire startup and start multithreading.
|
44
44
|
info = config.redis_info
|
45
45
|
ver = Gem::Version.new(info["redis_version"])
|
46
|
-
raise "You are
|
46
|
+
raise "You are connected to Redis #{ver}, Sidekiq requires Redis 7.0.0 or greater" if ver < Gem::Version.new("7.0.0")
|
47
47
|
|
48
48
|
maxmemory_policy = info["maxmemory_policy"]
|
49
49
|
if maxmemory_policy != "noeviction"
|
data/lib/sidekiq/launcher.rb
CHANGED
data/lib/sidekiq/version.rb
CHANGED
data/lib/sidekiq/web/action.rb
CHANGED
@@ -30,16 +30,16 @@ module Sidekiq
|
|
30
30
|
|
31
31
|
# external redirect
|
32
32
|
def redirect_to(url)
|
33
|
-
throw :halt, [302, {"
|
33
|
+
throw :halt, [302, {"location" => url}, []]
|
34
34
|
end
|
35
35
|
|
36
36
|
def header(key, value)
|
37
|
-
env["response_headers"][key] = value
|
37
|
+
env["response_headers"][key] = value.to_s
|
38
38
|
end
|
39
39
|
|
40
40
|
# internal redirect
|
41
41
|
def redirect(location)
|
42
|
-
throw :halt, [302, {"
|
42
|
+
throw :halt, [302, {"location" => "#{request.base_url}#{location}"}, []]
|
43
43
|
end
|
44
44
|
|
45
45
|
def reload_page
|
@@ -43,9 +43,9 @@ module Sidekiq
|
|
43
43
|
|
44
44
|
head "/" do
|
45
45
|
# HEAD / is the cheapest heartbeat possible,
|
46
|
-
# it hits Redis to ensure connectivity
|
47
|
-
|
48
|
-
|
46
|
+
# it hits Redis to ensure connectivity
|
47
|
+
_ = Sidekiq.redis { |c| c.llen("queue:default") }
|
48
|
+
""
|
49
49
|
end
|
50
50
|
|
51
51
|
get "/" do
|
@@ -240,8 +240,6 @@ module Sidekiq
|
|
240
240
|
end
|
241
241
|
|
242
242
|
post "/retries" do
|
243
|
-
route_params("mike")
|
244
|
-
url_params(:mike)
|
245
243
|
redirect(request.path) unless url_params("key")
|
246
244
|
|
247
245
|
url_params("key").each do |key|
|
data/web/views/layout.erb
CHANGED
@@ -2,15 +2,14 @@
|
|
2
2
|
<html dir="<%= text_direction %>" lang="<%= locale %>">
|
3
3
|
<head>
|
4
4
|
<title><%= environment_title_prefix %><%= Sidekiq::NAME %></title>
|
5
|
-
<meta charset="utf-8"
|
6
|
-
<meta name="viewport" content="width=device-width,initial-scale=1.0"
|
7
|
-
|
8
|
-
<link href="<%= root_path %>stylesheets/style.css" media="screen" rel="stylesheet" type="text/css" nonce="<%= csp_nonce %>"
|
9
|
-
|
10
|
-
<link rel="
|
11
|
-
<link rel="shortcut icon" type="image/ico" href="<%= root_path %>images/favicon.ico" />
|
5
|
+
<meta charset="utf-8"/>
|
6
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
|
7
|
+
<meta name="color-scheme" content="light dark"/>
|
8
|
+
<link href="<%= root_path %>stylesheets/style.css" media="screen" rel="stylesheet" type="text/css" nonce="<%= csp_nonce %>"/>
|
9
|
+
<link rel="apple-touch-icon" href="<%= root_path %>images/apple-touch-icon.png"/>
|
10
|
+
<link rel="shortcut icon" type="image/ico" href="<%= root_path %>images/favicon.ico"/>
|
12
11
|
<script type="text/javascript" src="<%= root_path %>javascripts/application.js" nonce="<%= csp_nonce %>"></script>
|
13
|
-
<meta name="google" content="notranslate"
|
12
|
+
<meta name="google" content="notranslate"/>
|
14
13
|
<%= display_custom_head %>
|
15
14
|
</head>
|
16
15
|
<body class="admin" data-locale="<%= locale %>">
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.0.
|
4
|
+
version: 8.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Perham
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-04-01 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: redis-client
|