sidekiq 7.0.0 → 7.0.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 +10 -4
- data/lib/sidekiq/embedded.rb +2 -2
- data/lib/sidekiq/launcher.rb +18 -10
- data/lib/sidekiq/version.rb +1 -1
- data/lib/sidekiq/web/helpers.rb +4 -0
- data/sidekiq.gemspec +1 -3
- data/web/locales/zh-cn.yml +20 -19
- data/web/views/_poll_link.erb +1 -1
- metadata +3 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98aab60f0a9bd14122cf62b2f31c17e41b67feb8c9fb13865ef0a16002d38ed7
|
4
|
+
data.tar.gz: 94038f0176ccb7785c6112cd41e915e4a1c7f66298a9670457a68e6b62f2710c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c41c724dc99aa3fdf49db46eeac0bec822bd6a67989792f4830900da7b74882c27837535a03a2ea6ed0575736fc895b23bb3440613d1f581e877bcbfe1c06934
|
7
|
+
data.tar.gz: 482af09f25f72f9fa0261f02e4e224dc58a400519f167f8cb0ea0dda4960b24a41b105731a4fcc2b81ff15f158497b9bf1cc86d55272ed8fe4ca7ed9029bc047
|
data/Changes.md
CHANGED
@@ -2,7 +2,13 @@
|
|
2
2
|
|
3
3
|
[Sidekiq Changes](https://github.com/mperham/sidekiq/blob/main/Changes.md) | [Sidekiq Pro Changes](https://github.com/mperham/sidekiq/blob/main/Pro-Changes.md) | [Sidekiq Enterprise Changes](https://github.com/mperham/sidekiq/blob/main/Ent-Changes.md)
|
4
4
|
|
5
|
-
|
5
|
+
7.0.1
|
6
|
+
----------
|
7
|
+
|
8
|
+
- Allow an embedding process to reuse its own heartbeat thread
|
9
|
+
- Update zh-cn localization
|
10
|
+
|
11
|
+
7.0.0
|
6
12
|
----------
|
7
13
|
|
8
14
|
- Embedded mode!
|
@@ -10,13 +16,13 @@ main
|
|
10
16
|
- Job Execution metrics!!!
|
11
17
|
- See `docs/7.0-Upgrade.md` for release notes
|
12
18
|
|
13
|
-
6
|
19
|
+
6.5.8
|
14
20
|
----------
|
15
21
|
|
22
|
+
- Fail if using a bad version of scout_apm [#5616]
|
16
23
|
- Add pagination to Busy page [#5556]
|
17
24
|
- Speed up WorkSet#each [#5559]
|
18
|
-
- Adjust CurrentAttributes to work with the String class name so we aren't referencing
|
19
|
-
the Class within a Rails initializer [#5536]
|
25
|
+
- Adjust CurrentAttributes to work with the String class name so we aren't referencing the Class within a Rails initializer [#5536]
|
20
26
|
|
21
27
|
6.5.7
|
22
28
|
----------
|
data/lib/sidekiq/embedded.rb
CHANGED
@@ -15,9 +15,9 @@ module Sidekiq
|
|
15
15
|
fire_event(:startup, reverse: false, reraise: true)
|
16
16
|
@launcher = Sidekiq::Launcher.new(@config, embedded: true)
|
17
17
|
@launcher.run
|
18
|
-
sleep 0.
|
18
|
+
sleep 0.2 # pause to give threads time to spin up
|
19
19
|
|
20
|
-
logger.info "
|
20
|
+
logger.info "Sidekiq running embedded, total process thread count: #{Thread.list.size}"
|
21
21
|
logger.debug { Thread.list.map(&:name) }
|
22
22
|
end
|
23
23
|
|
data/lib/sidekiq/launcher.rb
CHANGED
@@ -32,15 +32,17 @@ module Sidekiq
|
|
32
32
|
@done = false
|
33
33
|
end
|
34
34
|
|
35
|
-
|
35
|
+
# Start this Sidekiq instance. If an embedding process already
|
36
|
+
# has a heartbeat thread, caller can use `async_beat: false`
|
37
|
+
# and instead have thread call Launcher#heartbeat every N seconds.
|
38
|
+
def run(async_beat: true)
|
36
39
|
Sidekiq.freeze!
|
37
|
-
@thread = safe_thread("heartbeat", &method(:start_heartbeat))
|
40
|
+
@thread = safe_thread("heartbeat", &method(:start_heartbeat)) if async_beat
|
38
41
|
@poller.start
|
39
42
|
@managers.each(&:start)
|
40
43
|
end
|
41
44
|
|
42
45
|
# Stops this instance from processing any more jobs,
|
43
|
-
#
|
44
46
|
def quiet
|
45
47
|
return if @done
|
46
48
|
|
@@ -71,18 +73,30 @@ module Sidekiq
|
|
71
73
|
@done
|
72
74
|
end
|
73
75
|
|
76
|
+
# If embedding Sidekiq, you can have the process heartbeat
|
77
|
+
# call this method to regularly heartbeat rather than creating
|
78
|
+
# a separate thread.
|
79
|
+
def heartbeat
|
80
|
+
❤
|
81
|
+
end
|
82
|
+
|
74
83
|
private unless $TESTING
|
75
84
|
|
76
85
|
BEAT_PAUSE = 10
|
77
86
|
|
78
87
|
def start_heartbeat
|
79
88
|
loop do
|
80
|
-
|
89
|
+
beat
|
81
90
|
sleep BEAT_PAUSE
|
82
91
|
end
|
83
92
|
logger.info("Heartbeat stopping...")
|
84
93
|
end
|
85
94
|
|
95
|
+
def beat
|
96
|
+
$0 = PROCTITLES.map { |proc| proc.call(self, to_data) }.compact.join(" ") unless @embedded
|
97
|
+
❤
|
98
|
+
end
|
99
|
+
|
86
100
|
def clear_heartbeat
|
87
101
|
flush_stats
|
88
102
|
|
@@ -99,12 +113,6 @@ module Sidekiq
|
|
99
113
|
# best effort, ignore network errors
|
100
114
|
end
|
101
115
|
|
102
|
-
def heartbeat
|
103
|
-
$0 = PROCTITLES.map { |proc| proc.call(self, to_data) }.compact.join(" ") unless @embedded
|
104
|
-
|
105
|
-
❤
|
106
|
-
end
|
107
|
-
|
108
116
|
def flush_stats
|
109
117
|
fails = Processor::FAILURE.reset
|
110
118
|
procd = Processor::PROCESSED.reset
|
data/lib/sidekiq/version.rb
CHANGED
data/lib/sidekiq/web/helpers.rb
CHANGED
data/sidekiq.gemspec
CHANGED
@@ -41,9 +41,7 @@ Gem::Specification.new do |gem|
|
|
41
41
|
░░░░░░░░░ ░░░░░ ░░░░░░░░░░ ░░░░░░░░░░ ░░░░░ ░░░░ ░░░░░ ░░░░░░ ░░ ░░░ ░░ ░░░░░░
|
42
42
|
|
43
43
|
|
44
|
-
|
45
|
-
|
46
|
-
1. Use `gem 'sidekiq', '<7'` in your Gemfile if you don't want to be a beta tester.
|
44
|
+
1. Use `gem 'sidekiq', '<7'` in your Gemfile if you don't want this new version.
|
47
45
|
2. Read the release notes at https://github.com/mperham/sidekiq/blob/main/docs/7.0-Upgrade.md
|
48
46
|
3. Search for open/closed issues at https://github.com/mperham/sidekiq/issues/
|
49
47
|
|
data/web/locales/zh-cn.yml
CHANGED
@@ -32,23 +32,22 @@ zh-cn: # <---- change this to your locale code
|
|
32
32
|
Size: 容量
|
33
33
|
Actions: 动作
|
34
34
|
NextRetry: 下次重试
|
35
|
-
RetryCount:
|
35
|
+
RetryCount: 重试次数
|
36
36
|
RetryNow: 现在重试
|
37
37
|
Kill: 终止
|
38
|
-
LastRetry:
|
39
|
-
OriginallyFailed:
|
38
|
+
LastRetry: 上次重试
|
39
|
+
OriginallyFailed: 首次失败
|
40
40
|
AreYouSure: 你确定?
|
41
41
|
DeleteAll: 全部删除
|
42
42
|
RetryAll: 全部重试
|
43
43
|
KillAll: 全部终止
|
44
|
-
NoRetriesFound:
|
44
|
+
NoRetriesFound: 没有发现可重试
|
45
45
|
Error: 错误
|
46
|
-
ErrorBacktrace: 错误的回调追踪
|
47
46
|
ErrorClass: 错误类别
|
48
47
|
ErrorMessage: 错误消息
|
49
48
|
ErrorBacktrace: 错误细节
|
50
49
|
GoBack: ← 返回
|
51
|
-
NoScheduledFound:
|
50
|
+
NoScheduledFound: 没有发现计划任务
|
52
51
|
When: 当
|
53
52
|
ScheduledJobs: 计划任务
|
54
53
|
idle: 闲置
|
@@ -64,26 +63,26 @@ zh-cn: # <---- change this to your locale code
|
|
64
63
|
SixMonths: 六个月
|
65
64
|
Failures: 失败
|
66
65
|
DeadJobs: 已停滞任务
|
67
|
-
NoDeadJobsFound:
|
66
|
+
NoDeadJobsFound: 没有发现任何已停滞的任务
|
68
67
|
Dead: 已停滞
|
69
68
|
Process: 进程
|
70
|
-
Processes:
|
69
|
+
Processes: 进程
|
71
70
|
Name: 名称
|
72
71
|
Thread: 线程
|
73
72
|
Threads: 线程
|
74
73
|
Jobs: 任务
|
75
|
-
Paused:
|
76
|
-
Stop:
|
77
|
-
Quiet:
|
78
|
-
StopAll:
|
79
|
-
QuietAll:
|
80
|
-
PollingInterval:
|
81
|
-
Plugins:
|
82
|
-
NotYetEnqueued:
|
83
|
-
CreatedAt:
|
74
|
+
Paused: 已暂停
|
75
|
+
Stop: 强制暂停
|
76
|
+
Quiet: 暂停
|
77
|
+
StopAll: 全部强制暂停
|
78
|
+
QuietAll: 全部暂停
|
79
|
+
PollingInterval: 轮询周期
|
80
|
+
Plugins: 插件
|
81
|
+
NotYetEnqueued: 尚未进入队列
|
82
|
+
CreatedAt: 建立时间
|
84
83
|
BackToApp: 回首頁
|
85
|
-
Latency:
|
86
|
-
Pause:
|
84
|
+
Latency: 延迟
|
85
|
+
Pause: 暂停
|
87
86
|
Unpause: 取消暂停
|
88
87
|
Metrics: 指标
|
89
88
|
NoDataFound: 无数据
|
@@ -92,3 +91,5 @@ zh-cn: # <---- change this to your locale code
|
|
92
91
|
Context: 上下文
|
93
92
|
Bucket: 桶
|
94
93
|
NoJobMetricsFound: 无任务相关指标数据
|
94
|
+
Success: 成功
|
95
|
+
Failure: 失败
|
data/web/views/_poll_link.erb
CHANGED
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.0.
|
4
|
+
version: 7.0.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: 2022-
|
11
|
+
date: 2022-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis-client
|
@@ -219,9 +219,7 @@ post_install_message: |2
|
|
219
219
|
░░░░░░░░░ ░░░░░ ░░░░░░░░░░ ░░░░░░░░░░ ░░░░░ ░░░░ ░░░░░ ░░░░░░ ░░ ░░░ ░░ ░░░░░░
|
220
220
|
|
221
221
|
|
222
|
-
|
223
|
-
|
224
|
-
1. Use `gem 'sidekiq', '<7'` in your Gemfile if you don't want to be a beta tester.
|
222
|
+
1. Use `gem 'sidekiq', '<7'` in your Gemfile if you don't want this new version.
|
225
223
|
2. Read the release notes at https://github.com/mperham/sidekiq/blob/main/docs/7.0-Upgrade.md
|
226
224
|
3. Search for open/closed issues at https://github.com/mperham/sidekiq/issues/
|
227
225
|
|