sidekiq 5.2.4 → 7.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changes.md +672 -8
- data/LICENSE.txt +9 -0
- data/README.md +48 -51
- data/bin/multi_queue_bench +271 -0
- data/bin/sidekiq +22 -3
- data/bin/sidekiqload +213 -115
- data/bin/sidekiqmon +11 -0
- data/lib/generators/sidekiq/job_generator.rb +57 -0
- data/lib/generators/sidekiq/templates/{worker.rb.erb → job.rb.erb} +2 -2
- data/lib/generators/sidekiq/templates/{worker_spec.rb.erb → job_spec.rb.erb} +1 -1
- data/lib/generators/sidekiq/templates/{worker_test.rb.erb → job_test.rb.erb} +1 -1
- data/lib/sidekiq/api.rb +623 -352
- data/lib/sidekiq/capsule.rb +127 -0
- data/lib/sidekiq/cli.rb +214 -229
- data/lib/sidekiq/client.rb +127 -102
- data/lib/sidekiq/component.rb +68 -0
- data/lib/sidekiq/config.rb +287 -0
- data/lib/sidekiq/deploy.rb +62 -0
- data/lib/sidekiq/embedded.rb +61 -0
- data/lib/sidekiq/fetch.rb +49 -42
- data/lib/sidekiq/job.rb +374 -0
- data/lib/sidekiq/job_logger.rb +33 -7
- data/lib/sidekiq/job_retry.rb +157 -108
- data/lib/sidekiq/job_util.rb +107 -0
- data/lib/sidekiq/launcher.rb +206 -106
- data/lib/sidekiq/logger.rb +131 -0
- data/lib/sidekiq/manager.rb +43 -46
- data/lib/sidekiq/metrics/query.rb +156 -0
- data/lib/sidekiq/metrics/shared.rb +95 -0
- data/lib/sidekiq/metrics/tracking.rb +140 -0
- data/lib/sidekiq/middleware/chain.rb +113 -56
- data/lib/sidekiq/middleware/current_attributes.rb +95 -0
- data/lib/sidekiq/middleware/i18n.rb +7 -7
- data/lib/sidekiq/middleware/modules.rb +21 -0
- data/lib/sidekiq/monitor.rb +146 -0
- data/lib/sidekiq/paginator.rb +28 -16
- data/lib/sidekiq/processor.rb +126 -117
- data/lib/sidekiq/rails.rb +52 -38
- data/lib/sidekiq/redis_client_adapter.rb +111 -0
- data/lib/sidekiq/redis_connection.rb +41 -112
- data/lib/sidekiq/ring_buffer.rb +29 -0
- data/lib/sidekiq/scheduled.rb +112 -50
- data/lib/sidekiq/sd_notify.rb +149 -0
- data/lib/sidekiq/systemd.rb +24 -0
- data/lib/sidekiq/testing/inline.rb +6 -5
- data/lib/sidekiq/testing.rb +91 -90
- data/lib/sidekiq/transaction_aware_client.rb +51 -0
- data/lib/sidekiq/version.rb +3 -1
- data/lib/sidekiq/web/action.rb +20 -11
- data/lib/sidekiq/web/application.rb +202 -80
- data/lib/sidekiq/web/csrf_protection.rb +183 -0
- data/lib/sidekiq/web/helpers.rb +165 -114
- data/lib/sidekiq/web/router.rb +23 -19
- data/lib/sidekiq/web.rb +68 -107
- data/lib/sidekiq/worker_compatibility_alias.rb +13 -0
- data/lib/sidekiq.rb +92 -182
- data/sidekiq.gemspec +25 -16
- data/web/assets/images/apple-touch-icon.png +0 -0
- data/web/assets/javascripts/application.js +152 -61
- data/web/assets/javascripts/base-charts.js +106 -0
- data/web/assets/javascripts/chart.min.js +13 -0
- data/web/assets/javascripts/chartjs-plugin-annotation.min.js +7 -0
- data/web/assets/javascripts/dashboard-charts.js +182 -0
- data/web/assets/javascripts/dashboard.js +35 -293
- data/web/assets/javascripts/metrics.js +298 -0
- data/web/assets/stylesheets/application-dark.css +147 -0
- data/web/assets/stylesheets/application-rtl.css +10 -93
- data/web/assets/stylesheets/application.css +124 -522
- data/web/assets/stylesheets/bootstrap.css +1 -1
- data/web/locales/ar.yml +71 -65
- data/web/locales/cs.yml +62 -62
- data/web/locales/da.yml +60 -53
- data/web/locales/de.yml +65 -53
- data/web/locales/el.yml +43 -24
- data/web/locales/en.yml +86 -66
- data/web/locales/es.yml +70 -54
- data/web/locales/fa.yml +65 -65
- data/web/locales/fr.yml +83 -62
- data/web/locales/gd.yml +99 -0
- data/web/locales/he.yml +65 -64
- data/web/locales/hi.yml +59 -59
- data/web/locales/it.yml +53 -53
- data/web/locales/ja.yml +75 -64
- data/web/locales/ko.yml +52 -52
- data/web/locales/lt.yml +83 -0
- data/web/locales/nb.yml +61 -61
- data/web/locales/nl.yml +52 -52
- data/web/locales/pl.yml +45 -45
- data/web/locales/pt-br.yml +83 -55
- data/web/locales/pt.yml +51 -51
- data/web/locales/ru.yml +68 -63
- data/web/locales/sv.yml +53 -53
- data/web/locales/ta.yml +60 -60
- data/web/locales/uk.yml +62 -61
- data/web/locales/ur.yml +64 -64
- data/web/locales/vi.yml +83 -0
- data/web/locales/zh-cn.yml +43 -16
- data/web/locales/zh-tw.yml +42 -8
- data/web/views/_footer.erb +18 -3
- data/web/views/_job_info.erb +21 -4
- data/web/views/_metrics_period_select.erb +12 -0
- data/web/views/_nav.erb +1 -1
- data/web/views/_paging.erb +2 -0
- data/web/views/_poll_link.erb +3 -6
- data/web/views/_summary.erb +7 -7
- data/web/views/busy.erb +79 -29
- data/web/views/dashboard.erb +48 -18
- data/web/views/dead.erb +3 -3
- data/web/views/filtering.erb +7 -0
- data/web/views/layout.erb +3 -1
- data/web/views/metrics.erb +91 -0
- data/web/views/metrics_for_job.erb +59 -0
- data/web/views/morgue.erb +14 -15
- data/web/views/queue.erb +33 -24
- data/web/views/queues.erb +19 -5
- data/web/views/retries.erb +16 -17
- data/web/views/retry.erb +3 -3
- data/web/views/scheduled.erb +17 -15
- metadata +71 -72
- data/.github/contributing.md +0 -32
- data/.github/issue_template.md +0 -11
- data/.gitignore +0 -15
- data/.travis.yml +0 -17
- data/3.0-Upgrade.md +0 -70
- data/4.0-Upgrade.md +0 -53
- data/5.0-Upgrade.md +0 -56
- data/Appraisals +0 -9
- data/COMM-LICENSE +0 -95
- data/Ent-Changes.md +0 -225
- data/Gemfile +0 -29
- data/LICENSE +0 -9
- data/Pro-2.0-Upgrade.md +0 -138
- data/Pro-3.0-Upgrade.md +0 -44
- data/Pro-4.0-Upgrade.md +0 -35
- data/Pro-Changes.md +0 -752
- data/Rakefile +0 -9
- data/bin/sidekiqctl +0 -237
- data/code_of_conduct.md +0 -50
- data/gemfiles/rails_4.gemfile +0 -31
- data/gemfiles/rails_5.gemfile +0 -31
- data/lib/generators/sidekiq/worker_generator.rb +0 -49
- data/lib/sidekiq/core_ext.rb +0 -1
- data/lib/sidekiq/delay.rb +0 -42
- data/lib/sidekiq/exception_handler.rb +0 -29
- data/lib/sidekiq/extensions/action_mailer.rb +0 -57
- data/lib/sidekiq/extensions/active_record.rb +0 -40
- data/lib/sidekiq/extensions/class_methods.rb +0 -40
- data/lib/sidekiq/extensions/generic_proxy.rb +0 -31
- data/lib/sidekiq/logging.rb +0 -122
- data/lib/sidekiq/middleware/server/active_record.rb +0 -23
- data/lib/sidekiq/util.rb +0 -66
- data/lib/sidekiq/worker.rb +0 -215
data/web/locales/ur.yml
CHANGED
@@ -1,80 +1,80 @@
|
|
1
1
|
# elements like %{queue} are variables and should not be translated
|
2
2
|
ur:
|
3
|
-
|
4
|
-
Dashboard: صفحۂ اول
|
5
|
-
Status: اسٹیٹس
|
6
|
-
Time: ﻭﻗﺖ
|
7
|
-
Namespace: Namespace
|
8
|
-
Realtime: ﺑﺮاﮦ ﺭاﺳﺖ
|
9
|
-
History: ﺗﺎﺭﻳﺦ
|
10
|
-
Busy: مصروف
|
11
|
-
Processed: مکمل شدہ
|
12
|
-
Failed: ﻧﺎکاﻡ ﺷﺪﮦ
|
13
|
-
Scheduled: ﻁےﺷﺪﮦ
|
14
|
-
Retries: ﺩﻭﺑﺎﺭﮦ کﻭﺷﻴﺶ
|
15
|
-
Enqueued: قطار ميں شامل
|
16
|
-
Worker: ورکر
|
17
|
-
LivePoll: ﺑﺮاﮦ ﺭاﺳﺖ
|
18
|
-
StopPolling: ﺑﺮاﮦ ﺭاﺳﺖ روکيے
|
19
|
-
Queue: قطار
|
20
|
-
Class: کلاس
|
21
|
-
Job: جاب
|
22
|
-
Arguments: دلائل
|
23
|
-
Extras: اﺻﺎﻑی
|
24
|
-
Started: شروع
|
25
|
-
ShowAll: سارے دکھاو
|
26
|
-
CurrentMessagesInQueue: قطار ميں موجود تمام پيغامات <span class='title'>%{queue}</span>
|
3
|
+
Actions: ﻋﻮاﻣﻞ
|
27
4
|
AddToQueue: ﻗﻄﺎﺭ ميں شامل کريں
|
5
|
+
AreYouSure: کيا یقین ؟
|
28
6
|
AreYouSureDeleteJob: کيا آپ یقین جاب حتم کرنا چاھتے ہيں ؟
|
29
7
|
AreYouSureDeleteQueue: کيا آپ یقین قطار حتم کرنا چاھتے ہيں ؟
|
8
|
+
Arguments: دلائل
|
9
|
+
BackToApp: ﻭاپﺱ صفحۂ اﻭﻝ پر
|
10
|
+
Busy: مصروف
|
11
|
+
Class: کلاس
|
12
|
+
Connections: کنکشنز
|
13
|
+
CreatedAt: ﺗﺎﺭﻳﺢ آﻏﺎﺯ
|
14
|
+
CurrentMessagesInQueue: قطار ميں موجود تمام پيغامات <span class='title'>%{queue}</span>
|
15
|
+
Dashboard: صفحۂ اول
|
16
|
+
Dead: ختم شدہ
|
17
|
+
DeadJobs: ختم شدہ جاب
|
30
18
|
Delete: ﺣﺬﻑ
|
31
|
-
Queues: قطاريں
|
32
|
-
Size: ﺣﺠﻢ
|
33
|
-
Actions: ﻋﻮاﻣﻞ
|
34
|
-
NextRetry: اگلی کﻭﺷﻴﺶ
|
35
|
-
RetryCount: دوبارہ کوشش کا مکمل شمار
|
36
|
-
RetryNow: ابھی دوبارہ کوشش
|
37
|
-
Kill: ختم کرديں
|
38
|
-
LastRetry: گزشتہ کوشش
|
39
|
-
OriginallyFailed: ابتادائ ناکامی
|
40
|
-
AreYouSure: کيا یقین ؟
|
41
19
|
DeleteAll: ﺗﻤﺎﻡ ﺣﺬﻑ کر ديں
|
42
|
-
|
43
|
-
NoRetriesFound: کویٔ ﺩﻭﺑﺎﺭﮦ کﻭﺷﻴﺶ نھيں ملی
|
20
|
+
Enqueued: قطار ميں شامل
|
44
21
|
Error: مسئلہ
|
22
|
+
ErrorBacktrace: مسئلہ کی کی تحقیقات کريں
|
45
23
|
ErrorClass: مسئلہ کی کلاس
|
46
24
|
ErrorMessage: مسئلہ کی وجہ
|
47
|
-
|
25
|
+
Extras: اﺻﺎﻑی
|
26
|
+
Failed: ﻧﺎکاﻡ ﺷﺪﮦ
|
27
|
+
Failures: ناکامیاں
|
48
28
|
GoBack: واپس جايں
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
Connections: کنکشنز
|
29
|
+
History: ﺗﺎﺭﻳﺦ
|
30
|
+
Job: جاب
|
31
|
+
Jobs: جابز
|
32
|
+
Kill: ختم کرديں
|
33
|
+
LastRetry: گزشتہ کوشش
|
34
|
+
LivePoll: ﺑﺮاﮦ ﺭاﺳﺖ
|
56
35
|
MemoryUsage: یاداشت کا استعمال
|
57
|
-
|
58
|
-
|
59
|
-
OneWeek: ایک ہفتہ
|
60
|
-
OneMonth: ایک مہینہ
|
61
|
-
ThreeMonths: تین ماہ
|
62
|
-
SixMonths: چھ ماہ
|
63
|
-
Failures: ناکامیاں
|
64
|
-
DeadJobs: ختم شدہ جاب
|
36
|
+
Namespace: Namespace
|
37
|
+
NextRetry: اگلی کﻭﺷﻴﺶ
|
65
38
|
NoDeadJobsFound: کویٔ ختم شدہ جاب نہيی ملی
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
39
|
+
NoRetriesFound: کویٔ ﺩﻭﺑﺎﺭﮦ کﻭﺷﻴﺶ نھيں ملی
|
40
|
+
NoScheduledFound: کویٔ ﻁےﺷﺪﮦچيز نہیں ملی
|
41
|
+
NotYetEnqueued: ﻗﺘﺎﺭميں شامل نھيں
|
42
|
+
OneMonth: ایک مہینہ
|
43
|
+
OneWeek: ایک ہفتہ
|
44
|
+
OriginallyFailed: ابتادائ ناکامی
|
71
45
|
Paused: موقوف
|
72
|
-
|
46
|
+
PeakMemoryUsage: سب سے زيادہ یاداشت کا استعمال
|
47
|
+
Plugins: پلگ انز
|
48
|
+
PollingInterval: ﺑﺮاﮦ ﺭاﺳﺖ کا ﺩﻭﺭاﻧﻴﮧ
|
49
|
+
Processed: مکمل شدہ
|
50
|
+
Processes: ﻋﻤﻠﻴﺎﺕ
|
51
|
+
Queue: قطار
|
52
|
+
Queues: قطاريں
|
73
53
|
Quiet: ﺣﺘﻢ کﺭﻭ
|
74
|
-
StopAll: ﺗﻤﺎﻡ ﺑﻨﺪ کﺭﻭ
|
75
54
|
QuietAll: ﺗﻤﺎﻡ ﺣﺘﻢ کﺭﻭ
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
55
|
+
Realtime: ﺑﺮاﮦ ﺭاﺳﺖ
|
56
|
+
Retries: ﺩﻭﺑﺎﺭﮦ کﻭﺷﻴﺶ
|
57
|
+
RetryAll: ﺗﻤﺎﻡ کی ﺩﻭﺑﺎﺭﮦ کﻭﺷﻴﺶ کﺭيں
|
58
|
+
RetryCount: دوبارہ کوشش کا مکمل شمار
|
59
|
+
RetryNow: ابھی دوبارہ کوشش
|
60
|
+
Scheduled: ﻁےﺷﺪﮦ
|
61
|
+
ScheduledJobs: ﻁےﺷﺪﮦجاب
|
62
|
+
ShowAll: سارے دکھاو
|
63
|
+
SixMonths: چھ ماہ
|
64
|
+
Size: ﺣﺠﻢ
|
65
|
+
Started: شروع
|
66
|
+
Status: اسٹیٹس
|
67
|
+
Stop: بند کرو
|
68
|
+
StopAll: ﺗﻤﺎﻡ ﺑﻨﺪ کﺭﻭ
|
69
|
+
StopPolling: ﺑﺮاﮦ ﺭاﺳﺖ روکيے
|
70
|
+
TextDirection: 'rtl'
|
71
|
+
Thread: موضوع
|
72
|
+
Threads: موضوع
|
73
|
+
ThreeMonths: تین ماہ
|
74
|
+
Time: ﻭﻗﺖ
|
75
|
+
Uptime: اپ ٹائم
|
76
|
+
Version: ورژن
|
77
|
+
When: ﺏک
|
78
|
+
Worker: ورکر
|
79
|
+
active: فعال
|
80
|
+
idle: بیکار
|
data/web/locales/vi.yml
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
# elements like %{queue} are variables and should not be translated
|
2
|
+
vi:
|
3
|
+
Actions: Những hành động
|
4
|
+
AddToQueue: Thêm vào hàng đợi
|
5
|
+
AreYouSure: Bạn chắc chứ?
|
6
|
+
AreYouSureDeleteJob: Bạn có chắc là muốn xóa tác vụ này?
|
7
|
+
AreYouSureDeleteQueue: Bạn có chắc là muốn xóa %{queue} này?
|
8
|
+
Arguments: Tham số
|
9
|
+
BackToApp: Trở về ứng dụng
|
10
|
+
Busy: Bận rộn
|
11
|
+
Class: Lớp
|
12
|
+
Connections: Các kết nối
|
13
|
+
CreatedAt: Được tạo vào lúc
|
14
|
+
CurrentMessagesInQueue: Số lượng công việc trong <span class='title'>%{queue}</span>
|
15
|
+
Dashboard: Bảng điều khiển
|
16
|
+
Dead: Chết
|
17
|
+
DeadJobs: Những tác vụ đã chết
|
18
|
+
Delete: Xóa
|
19
|
+
DeleteAll: Xóa hết
|
20
|
+
Enqueued: Đã xếp hàng đợi
|
21
|
+
Error: Lỗi
|
22
|
+
ErrorBacktrace: Dấu vết của lỗi
|
23
|
+
ErrorClass: Lớp lỗi
|
24
|
+
ErrorMessage: Tin nhắn lỗi
|
25
|
+
Extras: Thêm
|
26
|
+
Failed: Đã thất bại
|
27
|
+
Failures: Các thất bại
|
28
|
+
GoBack: ← Trở lại
|
29
|
+
History: Lịch sử
|
30
|
+
Job: Tác vụ
|
31
|
+
Jobs: Các tác vụ
|
32
|
+
Kill: Giết
|
33
|
+
KillAll: Giết hết
|
34
|
+
LastRetry: Lần thử cuối
|
35
|
+
Latency: Độ trễ
|
36
|
+
LivePoll: Thăm dò trực tiếp
|
37
|
+
MemoryUsage: Lượng bộ nhớ sử dụng
|
38
|
+
Namespace: Không gian tên
|
39
|
+
NextRetry: Lần thử lại tiếp theo
|
40
|
+
NoDeadJobsFound: Không có tác vụ đã chết nào được tìm thấy
|
41
|
+
NoRetriesFound: Không có lần thử nào được tìm thấy
|
42
|
+
NoScheduledFound: Không có tác vụ đã lên lịch nào được tìm thấy
|
43
|
+
NotYetEnqueued: Chưa được bỏ vào hàng đợi
|
44
|
+
OneMonth: 1 tháng
|
45
|
+
OneWeek: 1 tuần
|
46
|
+
OriginallyFailed: Đã thất bại từ đầu
|
47
|
+
Pause: Tạm dừng
|
48
|
+
Paused: Đã tạm dừng
|
49
|
+
PeakMemoryUsage: Lượng bộ nhớ sử dụng đỉnh điểm
|
50
|
+
Plugins: Hệ thống đính kèm
|
51
|
+
PollingInterval: Khoảng thời gian giữa các lần thăm dò
|
52
|
+
Processed: Đã xử lí
|
53
|
+
Processes: Tiến trình xử lí
|
54
|
+
Queue: Hàng đợi
|
55
|
+
Queues: Các hàng đợi
|
56
|
+
Quiet: Im lặng
|
57
|
+
QuietAll: Làm cho tất cả im lặng
|
58
|
+
Realtime: Thời gian thực
|
59
|
+
Retries: Số lần thử
|
60
|
+
RetryAll: Thử lại tất cả
|
61
|
+
RetryCount: Số lần thử lại
|
62
|
+
RetryNow: Thử lại ngay bây giờ
|
63
|
+
Scheduled: Đã lên lịch
|
64
|
+
ScheduledJobs: Những Tác Vụ Được Hẹn
|
65
|
+
ShowAll: Hiện tất cả
|
66
|
+
SixMonths: 6 tháng
|
67
|
+
Size: Kích thước
|
68
|
+
Started: Đã bắt đầu
|
69
|
+
Status: Trạng thái
|
70
|
+
Stop: Dừng Lại
|
71
|
+
StopAll: Dừng lại tất cả
|
72
|
+
StopPolling: Ngừng thăm dò
|
73
|
+
Thread: Luồng xử lí
|
74
|
+
Threads: Những luồng xử lí
|
75
|
+
ThreeMonths: 3 tháng
|
76
|
+
Time: Thời gian
|
77
|
+
Unpause: Hủy tạm dừng
|
78
|
+
Uptime: Thời gian hệ thống đã online (days)
|
79
|
+
Version: Phiên bản
|
80
|
+
When: Khi nào
|
81
|
+
Worker: Máy xử lí
|
82
|
+
active: Đang hoạt động
|
83
|
+
idle: Đang chờ
|
data/web/locales/zh-cn.yml
CHANGED
@@ -7,6 +7,7 @@ zh-cn: # <---- change this to your locale code
|
|
7
7
|
Realtime: 实时
|
8
8
|
History: 历史记录
|
9
9
|
Busy: 执行中
|
10
|
+
Utilization: 利用率
|
10
11
|
Processed: 已处理
|
11
12
|
Failed: 已失败
|
12
13
|
Scheduled: 已计划
|
@@ -17,36 +18,38 @@ zh-cn: # <---- change this to your locale code
|
|
17
18
|
StopPolling: 停止轮询
|
18
19
|
Queue: 队列
|
19
20
|
Class: 类别
|
20
|
-
Job:
|
21
|
+
Job: 任务
|
21
22
|
Arguments: 参数
|
22
23
|
Extras: 额外的
|
23
24
|
Started: 已开始
|
24
25
|
ShowAll: 显示全部
|
25
|
-
CurrentMessagesInQueue: 目前在<span class='title'>%{queue}</span
|
26
|
+
CurrentMessagesInQueue: 目前在<span class='title'>%{queue}</span>的任务
|
26
27
|
Delete: 删除
|
27
28
|
AddToQueue: 添加至队列
|
28
|
-
AreYouSureDeleteJob:
|
29
|
+
AreYouSureDeleteJob: 你确定要删除这个任务么?
|
29
30
|
AreYouSureDeleteQueue: 你确定要删除%{queue}这个队列?
|
30
31
|
Queues: 队列
|
31
32
|
Size: 容量
|
32
33
|
Actions: 动作
|
33
34
|
NextRetry: 下次重试
|
34
|
-
RetryCount:
|
35
|
+
RetryCount: 重试次数
|
35
36
|
RetryNow: 现在重试
|
36
|
-
|
37
|
-
|
37
|
+
Kill: 终止
|
38
|
+
LastRetry: 上次重试
|
39
|
+
OriginallyFailed: 首次失败
|
38
40
|
AreYouSure: 你确定?
|
39
|
-
DeleteAll:
|
40
|
-
RetryAll:
|
41
|
-
|
41
|
+
DeleteAll: 全部删除
|
42
|
+
RetryAll: 全部重试
|
43
|
+
KillAll: 全部终止
|
44
|
+
NoRetriesFound: 没有发现可重试
|
42
45
|
Error: 错误
|
43
46
|
ErrorClass: 错误类别
|
44
47
|
ErrorMessage: 错误消息
|
45
|
-
ErrorBacktrace:
|
48
|
+
ErrorBacktrace: 错误细节
|
46
49
|
GoBack: ← 返回
|
47
|
-
NoScheduledFound:
|
50
|
+
NoScheduledFound: 没有发现计划任务
|
48
51
|
When: 当
|
49
|
-
ScheduledJobs:
|
52
|
+
ScheduledJobs: 计划任务
|
50
53
|
idle: 闲置
|
51
54
|
active: 活动中
|
52
55
|
Version: 版本
|
@@ -59,10 +62,34 @@ zh-cn: # <---- change this to your locale code
|
|
59
62
|
ThreeMonths: 三个月
|
60
63
|
SixMonths: 六个月
|
61
64
|
Failures: 失败
|
62
|
-
DeadJobs:
|
63
|
-
NoDeadJobsFound:
|
65
|
+
DeadJobs: 已停滞任务
|
66
|
+
NoDeadJobsFound: 没有发现任何已停滞的任务
|
64
67
|
Dead: 已停滞
|
65
|
-
|
68
|
+
Process: 进程
|
69
|
+
Processes: 进程
|
70
|
+
Name: 名称
|
66
71
|
Thread: 线程
|
67
72
|
Threads: 线程
|
68
|
-
Jobs:
|
73
|
+
Jobs: 任务
|
74
|
+
Paused: 已暂停
|
75
|
+
Stop: 强制暂停
|
76
|
+
Quiet: 暂停
|
77
|
+
StopAll: 全部强制暂停
|
78
|
+
QuietAll: 全部暂停
|
79
|
+
PollingInterval: 轮询周期
|
80
|
+
Plugins: 插件
|
81
|
+
NotYetEnqueued: 尚未进入队列
|
82
|
+
CreatedAt: 建立时间
|
83
|
+
BackToApp: 回首頁
|
84
|
+
Latency: 延迟
|
85
|
+
Pause: 暂停
|
86
|
+
Unpause: 取消暂停
|
87
|
+
Metrics: 指标
|
88
|
+
NoDataFound: 无数据
|
89
|
+
TotalExecutionTime: 总执行时间
|
90
|
+
AvgExecutionTime: 平均执行时间
|
91
|
+
Context: 上下文
|
92
|
+
Bucket: 桶
|
93
|
+
NoJobMetricsFound: 无任务相关指标数据
|
94
|
+
Success: 成功
|
95
|
+
Failure: 失败
|
data/web/locales/zh-tw.yml
CHANGED
@@ -7,6 +7,7 @@ zh-tw: # <---- change this to your locale code
|
|
7
7
|
Realtime: 即時
|
8
8
|
History: 歷史資料
|
9
9
|
Busy: 忙碌
|
10
|
+
Utilization: 使用率
|
10
11
|
Processed: 已處理
|
11
12
|
Failed: 已失敗
|
12
13
|
Scheduled: 已排程
|
@@ -25,26 +26,29 @@ zh-tw: # <---- change this to your locale code
|
|
25
26
|
CurrentMessagesInQueue: 目前在<span class='title'>%{queue}</span>的工作
|
26
27
|
Delete: 刪除
|
27
28
|
AddToQueue: 增加至佇列
|
28
|
-
AreYouSureDeleteJob:
|
29
|
-
AreYouSureDeleteQueue:
|
29
|
+
AreYouSureDeleteJob: 確定要刪除這個工作嗎?
|
30
|
+
AreYouSureDeleteQueue: 確定要刪除%{queue}佇列?這會刪除佇列裡的所有工作,佇列將會在有新工作時重新出現。
|
30
31
|
Queues: 佇列
|
31
32
|
Size: 容量
|
32
33
|
Actions: 動作
|
33
34
|
NextRetry: 下次重試
|
34
35
|
RetryCount: 重試次數
|
35
36
|
RetryNow: 馬上重試
|
37
|
+
Kill: 取消
|
36
38
|
LastRetry: 最後一次重試
|
37
39
|
OriginallyFailed: 原本已失敗
|
38
40
|
AreYouSure: 你確定?
|
39
|
-
DeleteAll:
|
40
|
-
RetryAll:
|
41
|
-
|
41
|
+
DeleteAll: 全部刪除
|
42
|
+
RetryAll: 全部重試
|
43
|
+
KillAll: 全部取消
|
44
|
+
NoRetriesFound: 找無可重試的工作
|
42
45
|
Error: 錯誤
|
46
|
+
ErrorBacktrace: 錯誤的回調追踨
|
43
47
|
ErrorClass: 錯誤類別
|
44
48
|
ErrorMessage: 錯誤訊息
|
45
|
-
ErrorBacktrace:
|
49
|
+
ErrorBacktrace: 詳細錯誤訊息
|
46
50
|
GoBack: ← 返回
|
47
|
-
NoScheduledFound:
|
51
|
+
NoScheduledFound: 找無已排程的工作
|
48
52
|
When: 當
|
49
53
|
ScheduledJobs: 已排程的工作
|
50
54
|
idle: 閒置
|
@@ -59,10 +63,40 @@ zh-tw: # <---- change this to your locale code
|
|
59
63
|
ThreeMonths: 三個月
|
60
64
|
SixMonths: 六個月
|
61
65
|
Failures: 失敗
|
62
|
-
|
66
|
+
GoBack: ← 返回
|
67
|
+
History: 歷史資料
|
68
|
+
Job: 工作
|
69
|
+
Jobs: 工作
|
70
|
+
LastRetry: 最後一次重試
|
71
|
+
LivePoll: 即時輪詢
|
72
|
+
MemoryUsage: 記憶體使用量
|
73
|
+
Namespace: 命名空間
|
74
|
+
NextRetry: 下次重試
|
63
75
|
NoDeadJobsFound: 沒有發現任何停滯的工作
|
64
76
|
Dead: 停滯
|
77
|
+
Process: 程序
|
65
78
|
Processes: 處理中
|
79
|
+
Name: 名稱
|
66
80
|
Thread: 執行緒
|
67
81
|
Threads: 執行緒
|
68
82
|
Jobs: 工作
|
83
|
+
Paused: 已暫停
|
84
|
+
Stop: 強制暫停
|
85
|
+
Quiet: 暫停
|
86
|
+
StopAll: 全部強制暫停
|
87
|
+
QuietAll: 全部暫停
|
88
|
+
PollingInterval: 輪詢週期
|
89
|
+
Plugins: 套件
|
90
|
+
NotYetEnqueued: 尚未進入佇列
|
91
|
+
CreatedAt: 建立時間
|
92
|
+
BackToApp: 回首頁
|
93
|
+
Latency: 延時
|
94
|
+
Pause: 暫停
|
95
|
+
Unpause: 取消暫停
|
96
|
+
Metrics: 計量
|
97
|
+
NoDataFound: 找無資料
|
98
|
+
TotalExecutionTime: 總執行時間
|
99
|
+
AvgExecutionTime: 平均執行時間
|
100
|
+
Context: 上下文
|
101
|
+
Bucket: 桶
|
102
|
+
NoJobMetricsFound: 找無工作相關計量資料
|
data/web/views/_footer.erb
CHANGED
@@ -6,13 +6,28 @@
|
|
6
6
|
<p class="navbar-text product-version"><%= product_version %></p>
|
7
7
|
</li>
|
8
8
|
<li>
|
9
|
-
<p class="navbar-text redis-url" title="<%=
|
9
|
+
<p class="navbar-text redis-url" title="<%= redis_url %>"><%= redis_url %></p>
|
10
10
|
</li>
|
11
11
|
<li>
|
12
|
-
<p class="navbar-text server-utc-time"><%= server_utc_time %></p>
|
12
|
+
<p id="serverUtcTime" class="navbar-text server-utc-time"><%= server_utc_time %></p>
|
13
13
|
</li>
|
14
14
|
<li>
|
15
|
-
<p class="navbar-text"><a
|
15
|
+
<p class="navbar-text"><a rel=help href="https://github.com/sidekiq/sidekiq/wiki">docs</a></p>
|
16
|
+
</li>
|
17
|
+
<li>
|
18
|
+
<form id="locale-form" class="form-inline" action="<%= root_path %>change_locale" method="post">
|
19
|
+
<%= csrf_tag %>
|
20
|
+
<label class="sr-only" for="locale">Language</label>
|
21
|
+
<select id="locale-select" class="form-control" name="locale">
|
22
|
+
<% available_locales.each do |locale_option| %>
|
23
|
+
<% if locale_option == locale %>
|
24
|
+
<option selected value="<%= locale_option %>"><%= locale_option %></option>
|
25
|
+
<% else %>
|
26
|
+
<option value="<%= locale_option %>"><%= locale_option %></option>
|
27
|
+
<% end %>
|
28
|
+
<% end %>
|
29
|
+
</select>
|
30
|
+
</form>
|
16
31
|
</li>
|
17
32
|
</ul>
|
18
33
|
</div>
|
data/web/views/_job_info.erb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
<header>
|
1
|
+
<div class="header-container">
|
2
2
|
<h3><%= t('Job') %></h3>
|
3
|
-
</
|
3
|
+
</div>
|
4
4
|
|
5
5
|
<div class="table_container">
|
6
|
-
<table class="table table-bordered table-striped">
|
6
|
+
<table class="table table-bordered table-striped table-hover">
|
7
7
|
<tbody>
|
8
8
|
<tr>
|
9
9
|
<th><%= t('Queue') %></th>
|
@@ -14,7 +14,8 @@
|
|
14
14
|
<tr>
|
15
15
|
<th><%= t('Job') %></th>
|
16
16
|
<td>
|
17
|
-
|
17
|
+
<%= job.display_class %>
|
18
|
+
<%= display_tags(job) %>
|
18
19
|
</td>
|
19
20
|
</tr>
|
20
21
|
<tr>
|
@@ -32,6 +33,14 @@
|
|
32
33
|
<code><%= job.jid %></code>
|
33
34
|
</td>
|
34
35
|
</tr>
|
36
|
+
<% if job.bid %>
|
37
|
+
<tr>
|
38
|
+
<th>BID</th>
|
39
|
+
<td>
|
40
|
+
<a href="<%= root_path %>batches/<%= job.bid %>"><%= job.bid %></a>
|
41
|
+
</td>
|
42
|
+
</tr>
|
43
|
+
<% end %>
|
35
44
|
<tr>
|
36
45
|
<th><%= t('CreatedAt') %></th>
|
37
46
|
<td><%= relative_time(job.created_at) %></td>
|
@@ -83,6 +92,14 @@
|
|
83
92
|
<td><%= relative_time(job.at) if job['retry_count'] %></td>
|
84
93
|
</tr>
|
85
94
|
<% end %>
|
95
|
+
<% Sidekiq::Web.custom_job_info_rows.each do |helper| %>
|
96
|
+
<% helper.add_pair(job) do |name, value| %>
|
97
|
+
<tr>
|
98
|
+
<th><%= name %></th>
|
99
|
+
<td><%= value %></td>
|
100
|
+
</tr>
|
101
|
+
<% end %>
|
102
|
+
<% end %>
|
86
103
|
</tbody>
|
87
104
|
</table>
|
88
105
|
</div>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<div>
|
2
|
+
<select class="form-control" data-metric-period="<%= path %>">
|
3
|
+
<% periods.each_key do |code| %>
|
4
|
+
|
5
|
+
<% if code == period %>
|
6
|
+
<option selected value="<%= code %>"><%= code %></option>
|
7
|
+
<% else %>
|
8
|
+
<option value="<%= code %>"><%= code %></option>
|
9
|
+
<% end %>
|
10
|
+
<% end %>
|
11
|
+
</select>
|
12
|
+
</div>
|
data/web/views/_nav.erb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<div class="navbar navbar-default navbar-fixed-top">
|
2
2
|
<div class="container-fluid">
|
3
3
|
<div class="navbar-header" data-navbar="static">
|
4
|
-
<button type="button" class="navbar-toggle collapsed" data-toggle="
|
4
|
+
<button type="button" class="navbar-toggle collapsed" data-toggle="navbar-menu" data-target="#navbar-menu">
|
5
5
|
<span class="icon-bar"></span>
|
6
6
|
<span class="icon-bar"></span>
|
7
7
|
<span class="icon-bar"></span>
|
data/web/views/_paging.erb
CHANGED
data/web/views/_poll_link.erb
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
<% if
|
2
|
-
|
3
|
-
<a
|
4
|
-
<% else %>
|
5
|
-
<a id="live-poll" class="btn btn-primary" href="<%= root_path + current_path %>?<%= qparams(poll: true) %>"><%= t('LivePoll') %></a>
|
6
|
-
<% end %>
|
1
|
+
<% if pollable? %>
|
2
|
+
<a class="live-poll-start live-poll btn btn-primary"><%= t('LivePoll') %></a>
|
3
|
+
<a class="live-poll-stop live-poll btn btn-primary active"><%= t('StopPolling') %></a>
|
7
4
|
<% end %>
|
data/web/views/_summary.erb
CHANGED
@@ -1,39 +1,39 @@
|
|
1
1
|
<ul class="list-unstyled summary row">
|
2
2
|
<li class="processed col-sm-1">
|
3
|
-
<span class="count"><%=
|
3
|
+
<span id="txtProcessed" class="count" data-nwp><%= stats.processed %></span>
|
4
4
|
<span class="desc"><%= t('Processed') %></span>
|
5
5
|
</li>
|
6
6
|
<li class="failed col-sm-1">
|
7
|
-
<span class="count"><%=
|
7
|
+
<span id="txtFailed" class="count" data-nwp><%= stats.failed %></span>
|
8
8
|
<span class="desc"><%= t('Failed') %></span>
|
9
9
|
</li>
|
10
10
|
<li class="busy col-sm-1">
|
11
11
|
<a href="<%= root_path %>busy">
|
12
|
-
<span class="count"><%=
|
12
|
+
<span id="txtBusy" class="count" data-nwp><%= workset.size %></span>
|
13
13
|
<span class="desc"><%= t('Busy') %></span>
|
14
14
|
</a>
|
15
15
|
</li>
|
16
16
|
<li class="enqueued col-sm-1">
|
17
17
|
<a href="<%= root_path %>queues">
|
18
|
-
<span class="count"><%=
|
18
|
+
<span id="txtEnqueued" class="count" data-nwp><%= stats.enqueued %></span>
|
19
19
|
<span class="desc"><%= t('Enqueued') %></span>
|
20
20
|
</a>
|
21
21
|
</li>
|
22
22
|
<li class="retries col-sm-1">
|
23
23
|
<a href="<%= root_path %>retries">
|
24
|
-
<span class="count"><%=
|
24
|
+
<span id="txtRetries" class="count" data-nwp><%= stats.retry_size %></span>
|
25
25
|
<span class="desc"><%= t('Retries') %></span>
|
26
26
|
</a>
|
27
27
|
</li>
|
28
28
|
<li class="scheduled col-sm-1">
|
29
29
|
<a href="<%= root_path %>scheduled">
|
30
|
-
<span class="count"><%=
|
30
|
+
<span id="txtScheduled" class="count" data-nwp><%= stats.scheduled_size %></span>
|
31
31
|
<span class="desc"><%= t('Scheduled') %></span>
|
32
32
|
</a>
|
33
33
|
</li>
|
34
34
|
<li class="dead col-sm-1">
|
35
35
|
<a href="<%= root_path %>morgue">
|
36
|
-
<span class="count"><%=
|
36
|
+
<span id="txtDead" class="count" data-nwp><%= stats.dead_size %></span>
|
37
37
|
<span class="desc"><%= t('Dead') %></span>
|
38
38
|
</a>
|
39
39
|
</li>
|