sidekiq 7.3.9 → 8.0.1

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.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/Changes.md +44 -0
  3. data/README.md +16 -13
  4. data/bin/sidekiqload +10 -10
  5. data/bin/webload +69 -0
  6. data/lib/active_job/queue_adapters/sidekiq_adapter.rb +5 -5
  7. data/lib/sidekiq/api.rb +120 -36
  8. data/lib/sidekiq/capsule.rb +6 -6
  9. data/lib/sidekiq/cli.rb +15 -19
  10. data/lib/sidekiq/client.rb +13 -16
  11. data/lib/sidekiq/component.rb +40 -2
  12. data/lib/sidekiq/config.rb +18 -15
  13. data/lib/sidekiq/embedded.rb +1 -0
  14. data/lib/sidekiq/iterable_job.rb +1 -0
  15. data/lib/sidekiq/job/iterable.rb +13 -4
  16. data/lib/sidekiq/job_logger.rb +4 -4
  17. data/lib/sidekiq/job_retry.rb +17 -5
  18. data/lib/sidekiq/job_util.rb +5 -1
  19. data/lib/sidekiq/launcher.rb +1 -1
  20. data/lib/sidekiq/logger.rb +19 -70
  21. data/lib/sidekiq/manager.rb +0 -1
  22. data/lib/sidekiq/metrics/query.rb +71 -45
  23. data/lib/sidekiq/metrics/shared.rb +8 -5
  24. data/lib/sidekiq/metrics/tracking.rb +9 -7
  25. data/lib/sidekiq/middleware/current_attributes.rb +5 -17
  26. data/lib/sidekiq/paginator.rb +8 -1
  27. data/lib/sidekiq/processor.rb +21 -14
  28. data/lib/sidekiq/profiler.rb +59 -0
  29. data/lib/sidekiq/redis_client_adapter.rb +0 -1
  30. data/lib/sidekiq/redis_connection.rb +14 -3
  31. data/lib/sidekiq/testing.rb +2 -2
  32. data/lib/sidekiq/version.rb +2 -2
  33. data/lib/sidekiq/web/action.rb +104 -84
  34. data/lib/sidekiq/web/application.rb +347 -332
  35. data/lib/sidekiq/web/config.rb +117 -0
  36. data/lib/sidekiq/web/helpers.rb +41 -16
  37. data/lib/sidekiq/web/router.rb +60 -76
  38. data/lib/sidekiq/web.rb +50 -156
  39. data/lib/sidekiq.rb +1 -1
  40. data/sidekiq.gemspec +6 -6
  41. data/web/assets/javascripts/application.js +6 -13
  42. data/web/assets/javascripts/base-charts.js +30 -16
  43. data/web/assets/javascripts/chartjs-adapter-date-fns.min.js +7 -0
  44. data/web/assets/javascripts/metrics.js +16 -34
  45. data/web/assets/stylesheets/style.css +750 -0
  46. data/web/locales/ar.yml +1 -0
  47. data/web/locales/cs.yml +1 -0
  48. data/web/locales/da.yml +1 -0
  49. data/web/locales/de.yml +1 -0
  50. data/web/locales/el.yml +1 -0
  51. data/web/locales/en.yml +6 -0
  52. data/web/locales/es.yml +24 -2
  53. data/web/locales/fa.yml +1 -0
  54. data/web/locales/fr.yml +1 -0
  55. data/web/locales/gd.yml +1 -0
  56. data/web/locales/he.yml +1 -0
  57. data/web/locales/hi.yml +1 -0
  58. data/web/locales/it.yml +1 -0
  59. data/web/locales/ja.yml +1 -0
  60. data/web/locales/ko.yml +1 -0
  61. data/web/locales/lt.yml +1 -0
  62. data/web/locales/nb.yml +1 -0
  63. data/web/locales/nl.yml +1 -0
  64. data/web/locales/pl.yml +1 -0
  65. data/web/locales/{pt-br.yml → pt-BR.yml} +2 -1
  66. data/web/locales/pt.yml +1 -0
  67. data/web/locales/ru.yml +1 -0
  68. data/web/locales/sv.yml +1 -0
  69. data/web/locales/ta.yml +1 -0
  70. data/web/locales/tr.yml +1 -0
  71. data/web/locales/uk.yml +1 -0
  72. data/web/locales/ur.yml +1 -0
  73. data/web/locales/vi.yml +1 -0
  74. data/web/locales/{zh-cn.yml → zh-CN.yml} +85 -73
  75. data/web/locales/{zh-tw.yml → zh-TW.yml} +2 -1
  76. data/web/views/_footer.erb +31 -33
  77. data/web/views/_job_info.erb +91 -89
  78. data/web/views/_metrics_period_select.erb +13 -10
  79. data/web/views/_nav.erb +14 -21
  80. data/web/views/_paging.erb +23 -21
  81. data/web/views/_poll_link.erb +2 -2
  82. data/web/views/_summary.erb +16 -16
  83. data/web/views/busy.erb +124 -122
  84. data/web/views/dashboard.erb +62 -66
  85. data/web/views/dead.erb +31 -27
  86. data/web/views/filtering.erb +3 -3
  87. data/web/views/layout.erb +6 -22
  88. data/web/views/metrics.erb +75 -81
  89. data/web/views/metrics_for_job.erb +45 -46
  90. data/web/views/morgue.erb +61 -70
  91. data/web/views/profiles.erb +43 -0
  92. data/web/views/queue.erb +54 -52
  93. data/web/views/queues.erb +43 -41
  94. data/web/views/retries.erb +66 -75
  95. data/web/views/retry.erb +32 -27
  96. data/web/views/scheduled.erb +58 -54
  97. data/web/views/scheduled_job_info.erb +1 -1
  98. metadata +24 -24
  99. data/web/assets/stylesheets/application-dark.css +0 -147
  100. data/web/assets/stylesheets/application-rtl.css +0 -163
  101. data/web/assets/stylesheets/application.css +0 -759
  102. data/web/assets/stylesheets/bootstrap-rtl.min.css +0 -9
  103. data/web/assets/stylesheets/bootstrap.css +0 -5
  104. data/web/views/_status.erb +0 -4
data/web/locales/ar.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  ar:
3
+ LanguageName: العربية
3
4
  Actions: إجراءات
4
5
  AddToQueue: إضافة إلى الرتل
5
6
  AreYouSure: هل انت متأكد؟
data/web/locales/cs.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  cs:
3
+ LanguageName: Čeština
3
4
  Actions: Akce
4
5
  AddToQueue: Přidat do fronty
5
6
  AreYouSure: Jste si jisti?
data/web/locales/da.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  da:
3
+ LanguageName: Dansk
3
4
  Actions: Handlinger
4
5
  AddToQueue: Tilføj til kø
5
6
  AreYouSure: Er du sikker?
data/web/locales/de.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  de:
3
+ LanguageName: Deutsch
3
4
  Actions: Aktionen
4
5
  AddToQueue: In Warteschlange einreihen
5
6
  AreYouSure: Bist du sicher?
data/web/locales/el.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  el: # <---- change this to your locale code
3
+ LanguageName: ελληνικά
3
4
  Dashboard: Πίνακας Ελέγχου
4
5
  Status: Κατάσταση
5
6
  Time: Χρόνος
data/web/locales/en.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  en:
3
+ LanguageName: English
3
4
  Actions: Actions
4
5
  AddToQueue: Add to queue
5
6
  AreYouSure: Are you sure?
@@ -101,3 +102,8 @@ en:
101
102
  NoJobMetricsFound: No recent job metrics were found
102
103
  Filter: Filter
103
104
  AnyJobContent: Any job content
105
+ Profiles: Profiles
106
+ Data: Data
107
+ View: View
108
+ Token: Token
109
+ ElapsedTime: Elapsed Time
data/web/locales/es.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  es:
3
+ LanguageName: Español
3
4
  Actions: Acciones
4
5
  AddToQueue: Añadir a la cola
5
6
  AreYouSure: ¿Estás seguro?
@@ -17,20 +18,24 @@ es:
17
18
  DeadJobs: Trabajos muertos
18
19
  Delete: Eliminar
19
20
  DeleteAll: Borrar Todo
21
+ Deploy: Desplegar
20
22
  Enqueued: En Cola
21
23
  Error: Error
22
24
  ErrorBacktrace: Trazado del Error
23
25
  ErrorClass: Clase del Error
24
26
  ErrorMessage: Mensaje de Error
27
+ ExecutionTime: Tiempo de ejecución
25
28
  Extras: Extras
26
29
  Failed: Fallidas
27
30
  Failures: Fallas
31
+ Failure: Fallo
28
32
  GoBack: ← Regresar
29
33
  History: Historial
30
34
  Job: Trabajo
31
35
  Jobs: Trabajos
32
36
  Kill: Matar
33
37
  KillAll: Matar Todo
38
+ Language: Idioma
34
39
  LastRetry: Último Reintento
35
40
  Latency: Latencia
36
41
  LivePoll: Sondeo en Vivo
@@ -50,6 +55,7 @@ es:
50
55
  PeakMemoryUsage: Máximo Uso de Memoria
51
56
  Plugins: Plugins
52
57
  PollingInterval: Intervalo de Sondeo
58
+ PollingIntervalMilliseconds: Intervalo de sondeo en milisegundos
53
59
  Process: Proceso
54
60
  Processed: Procesadas
55
61
  Processes: Procesos
@@ -60,18 +66,21 @@ es:
60
66
  Realtime: Tiempo Real
61
67
  Retries: Reintentos
62
68
  RetryAll: Reintentar Todo
63
- RetryCount: Numero de Reintentos
69
+ RetryCount: Número de Reintentos
64
70
  RetryNow: Reintentar Ahora
65
71
  Scheduled: Programadas
66
72
  ScheduledJobs: Trabajos programados
73
+ Seconds: Segundos
67
74
  ShowAll: Mostrar Todo
68
75
  SixMonths: 6 meses
69
76
  Size: Tamaño
70
77
  Started: Hora de Inicio
71
- Status: Estatus
78
+ Status: Estado
72
79
  Stop: Detener
73
80
  StopAll: Detener Todo
74
81
  StopPolling: Detener Sondeo
82
+ Success: Éxito
83
+ Summary: Resumen
75
84
  Thread: Hilo
76
85
  Threads: Hilos
77
86
  ThreeMonths: 3 meses
@@ -84,3 +93,16 @@ es:
84
93
  Worker: Trabajador
85
94
  active: activo
86
95
  idle: inactivo
96
+ Metrics: Metricas
97
+ NoDataFound: Datos no encontrados
98
+ TotalExecutionTime: Total de tiempo de ejecución
99
+ AvgExecutionTime: Tiempo promedio de ejecución
100
+ Context: Contexto
101
+ NoJobMetricsFound: Metricas no encontradas
102
+ Filter: Filtro
103
+ AnyJobContent: Cualquier contenido del trabajo
104
+ Profiles: Perfiles
105
+ Data: Datos
106
+ View: Vista
107
+ Token: Token
108
+ ElapsedTime: Tiempo transcurrido
data/web/locales/fa.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  fa:
3
+ LanguageName: فارسى
3
4
  Actions: اعمال
4
5
  AddToQueue: افزودن به صف
5
6
  AreYouSure: آیا مطمعن هستید?
data/web/locales/fr.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  fr:
3
+ LanguageName: Français
3
4
  Actions: Actions
4
5
  AddToQueue: Ajouter à la queue
5
6
  AreYouSure: Êtes-vous certain ?
data/web/locales/gd.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  gd:
3
+ LanguageName: Gaeilge
3
4
  Actions: Gnìomhan
4
5
  AddToQueue: Cuir ris a’ chiutha
5
6
  AreYouSure: A bheil thu cinnteach?
data/web/locales/he.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  he:
3
+ LanguageName: עברית
3
4
  Actions: פעולות
4
5
  AddToQueue: הוסף לתור
5
6
  AreYouSure: אתם בטוחים?
data/web/locales/hi.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  hi:
3
+ LanguageName: हिन्दी
3
4
  Actions: कार्रवाई
4
5
  AddToQueue: कतार मे जोड़ें
5
6
  AreYouSure: क्या आपको यकीन है?
data/web/locales/it.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  it:
3
+ LanguageName: Italiano
3
4
  Actions: Azioni
4
5
  AddToQueue: Aggiungi alla coda
5
6
  AreYouSure: Sei sicuro?
data/web/locales/ja.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  ja:
3
+ LanguageName: 日本語
3
4
  Actions: アクション
4
5
  AddToQueue: キューに追加
5
6
  AreYouSure: よろしいですか?
data/web/locales/ko.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  ko:
3
+ LanguageName: 한국어
3
4
  Actions: 동작
4
5
  AddToQueue: 큐 추가
5
6
  AreYouSure: 정말입니까?
data/web/locales/lt.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  lt:
3
+ LanguageName: Lietuvių
3
4
  Actions: Veiksmai
4
5
  AddToQueue: Pridėti į eilę
5
6
  AreYouSure: Ar jūs įsitikinę?
data/web/locales/nb.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  nb:
3
+ LanguageName: Norsk
3
4
  Actions: Handlinger
4
5
  AddToQueue: Legg til i kø
5
6
  AreYouSure: Er du sikker?
data/web/locales/nl.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  nl:
3
+ LanguageName: Nederlands
3
4
  Actions: Acties
4
5
  AddToQueue: Toevoegen aan wachtrij
5
6
  AreYouSure: Weet u het zeker?
data/web/locales/pl.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  pl:
3
+ LanguageName: Polski
3
4
  Actions: Akcje
4
5
  AddToQueue: dodaj do kolejki
5
6
  AreYouSure: Na pewno?
@@ -1,4 +1,5 @@
1
- "pt-br":
1
+ "pt-BR":
2
+ LanguageName: Português (Brasil)
2
3
  Actions: Ações
3
4
  AddToQueue: Adicionar à fila
4
5
  AreYouSure: Tem certeza?
data/web/locales/pt.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  pt:
3
+ LanguageName: Português
3
4
  Actions: Acções
4
5
  AddToQueue: Adicionar à fila
5
6
  AreYouSure: Tem a certeza?
data/web/locales/ru.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  ru:
3
+ LanguageName: Русский
3
4
  Actions: Действия
4
5
  AddToQueue: Добавить в очередь
5
6
  AreYouSure: Вы уверены?
data/web/locales/sv.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  sv:
3
+ LanguageName: Svenska
3
4
  Actions: Åtgärder
4
5
  AddToQueue: Lägg till i kö
5
6
  AreYouSure: Är du säker?
data/web/locales/ta.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  ta:
3
+ LanguageName: தமிழ்
3
4
  Actions: செயல்கள்
4
5
  AddToQueue: வரிசையில் சேர்
5
6
  AreYouSure: நீங்கள் உறுதியாக இருக்கிறீர்களா?
data/web/locales/tr.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  tr:
3
+ LanguageName: Türkçe
3
4
  Actions: Eylemler
4
5
  AddToQueue: Kuyruğa ekle
5
6
  AreYouSure: Emin misiniz?
data/web/locales/uk.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  uk:
3
+ LanguageName: Українська
3
4
  Actions: Дії
4
5
  AddToQueue: Додати до черги
5
6
  AreYouSure: Ви впевнені?
data/web/locales/ur.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  ur:
3
+ LanguageName: اردو
3
4
  Actions: ﻋﻮاﻣﻞ
4
5
  AddToQueue: ﻗﻄﺎﺭ ميں شامل کريں
5
6
  AreYouSure: کيا یقین ؟
data/web/locales/vi.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
2
  vi:
3
+ LanguageName: Tiếng Việt
3
4
  Actions: Những hành động
4
5
  AddToQueue: Thêm vào hàng đợi
5
6
  AreYouSure: Bạn chắc chứ?
@@ -1,94 +1,106 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
- zh-cn: # <---- change this to your locale code
3
- Dashboard: 信息板
4
- Status: 状态
5
- Time: 时间
6
- Namespace: 命名空间
7
- Realtime: 实时
8
- History: 历史记录
2
+ zh-CN: # <---- change this to your locale code
3
+ LanguageName: 中文
4
+ Actions: 操作
5
+ AddToQueue: 添加至队列
6
+ AreYouSure: 你确定?
7
+ AreYouSureDeleteJob: 你确定要删除这个任务么?
8
+ AreYouSureDeleteQueue: 你确定要删除 %{queue} 队列吗?这将删除当前队列中的所有任务,当新的任务添加到该队列时,它会重新出现。
9
+ Arguments: 参数
10
+ BackToApp: 返回首页
9
11
  Busy: 执行中
10
- Utilization: 利用率
11
- Processed: 已处理
12
- Failed: 已失败
13
- Scheduled: 已计划
14
- Retries: 重试
15
- Enqueued: 已进入队列
16
- Worker: 工人
17
- LivePoll: 实时轮询
18
- StopPolling: 停止轮询
19
- Queue: 队列
20
12
  Class: 类别
21
- Job: 任务
22
- Arguments: 参数
23
- Extras: 额外的
24
- Started: 已开始
25
- ShowAll: 显示全部
26
- CurrentMessagesInQueue: 目前在<span class='title'>%{queue}</span>的任务
13
+ Connections: 连接
14
+ CreatedAt: 创建时间
15
+ CurrentMessagesInQueue: 目前在 <span class='title'>%{queue}</span> 队列中的任务
16
+ Dashboard: 信息板
17
+ Dead: 已停滞
18
+ DeadJobs: 已停滞任务
27
19
  Delete: 删除
28
- AddToQueue: 添加至队列
29
- AreYouSureDeleteJob: 你确定要删除这个任务么?
30
- AreYouSureDeleteQueue: 你确定要删除%{queue}这个队列?
31
- Queues: 队列
32
- Size: 容量
33
- Actions: 动作
34
- NextRetry: 下次重试
35
- RetryCount: 重试次数
36
- RetryNow: 现在重试
37
- Kill: 终止
38
- LastRetry: 上次重试
39
- OriginallyFailed: 首次失败
40
- AreYouSure: 你确定?
41
20
  DeleteAll: 全部删除
42
- RetryAll: 全部重试
43
- KillAll: 全部终止
44
- NoRetriesFound: 没有发现可重试
21
+ Deploy: 部署
22
+ Enqueued: 已进入队列
45
23
  Error: 错误
46
- ErrorClass: 错误类别
47
- ErrorMessage: 错误消息
48
24
  ErrorBacktrace: 错误细节
25
+ ErrorClass: 错误类别
26
+ ErrorMessage: 错误信息
27
+ ExecutionTime: 执行时间
28
+ Extras: 附加信息
29
+ Failed: 失败
30
+ Failures: 失败记录
31
+ Failure: 失败
49
32
  GoBack: ← 返回
50
- NoScheduledFound: 没有发现计划任务
51
- When:
52
- ScheduledJobs: 计划任务
53
- idle: 闲置
54
- active: 活动中
55
- Version: 版本
56
- Connections: 连接
33
+ History: 历史记录
34
+ Job: 任务
35
+ Jobs: 任务
36
+ Kill: 终止
37
+ KillAll: 全部终止
38
+ LastRetry: 上次重试
39
+ Latency: 延迟
40
+ LivePoll: 实时轮询
57
41
  MemoryUsage: 内存占用
42
+ Name: 名称
43
+ Namespace: 命名空间
44
+ NextRetry: 下次重试
45
+ NoDeadJobsFound: 没有发现已停滞任务
46
+ NoRetriesFound: 没有发现可重试任务
47
+ NoScheduledFound: 没有发现计划任务
48
+ NotYetEnqueued: 尚未进入队列
49
+ OneMonth: 1个月
50
+ OneWeek: 1周
51
+ OriginallyFailed: 首次失败
52
+ Pause: 暂停
53
+ Paused: 已暂停
58
54
  PeakMemoryUsage: 内存占用峰值
59
- Uptime: 上线时间 (天数)
60
- OneWeek: 一周
61
- OneMonth: 一个月
62
- ThreeMonths: 三个月
63
- SixMonths: 六个月
64
- Failures: 失败
65
- DeadJobs: 已停滞任务
66
- NoDeadJobsFound: 没有发现任何已停滞的任务
67
- Dead: 已停滞
55
+ Plugins: 插件
56
+ PollingInterval: 轮询周期
68
57
  Process: 进程
58
+ Processed: 已处理
69
59
  Processes: 进程
70
- Name: 名称
71
- Thread: 线程
72
- Threads: 线程
73
- Jobs: 任务
74
- Paused: 已暂停
75
- Stop: 强制暂停
60
+ Queue: 队列
61
+ Queues: 队列
76
62
  Quiet: 暂停
77
- StopAll: 全部强制暂停
78
63
  QuietAll: 全部暂停
79
- PollingInterval: 轮询周期
80
- Plugins: 插件
81
- NotYetEnqueued: 尚未进入队列
82
- CreatedAt: 建立时间
83
- BackToApp: 回首頁
84
- Latency: 延迟
85
- Pause: 暂停
64
+ Realtime: 实时
65
+ Retries: 重试
66
+ RetryAll: 全部重试
67
+ RetryCount: 重试次数
68
+ RetryNow: 立即重试
69
+ Scheduled: 已计划
70
+ ScheduledJobs: 计划任务
71
+ Seconds: 秒
72
+ ShowAll: 显示全部
73
+ SixMonths: 6个月
74
+ Size: 大小
75
+ Started: 已启动
76
+ Status: 状态
77
+ Stop: 强制暂停
78
+ StopAll: 全部强制暂停
79
+ StopPolling: 停止轮询
80
+ Success: 成功
81
+ Summary: 概览
82
+ Thread: 线程
83
+ Threads: 线程
84
+ ThreeMonths: 3个月
85
+ Time: 时间
86
86
  Unpause: 取消暂停
87
+ Uptime: 运行时间(天)
88
+ Utilization: 利用率
89
+ Version: 版本
90
+ When: 当
91
+ Worker: 线程
92
+ active: 活动中
93
+ idle: 闲置
87
94
  Metrics: 指标
88
95
  NoDataFound: 无数据
89
96
  TotalExecutionTime: 总执行时间
90
97
  AvgExecutionTime: 平均执行时间
91
98
  Context: 上下文
92
99
  NoJobMetricsFound: 无任务相关指标数据
93
- Success: 成功
94
- Failure: 失败
100
+ Filter: 过滤
101
+ AnyJobContent: 任何任务内容
102
+ Profiles: 性能分析
103
+ Data: 数据
104
+ View: 查看
105
+ Token: 标记
106
+ ElapsedTime: 已用时间
@@ -1,5 +1,6 @@
1
1
  # elements like %{queue} are variables and should not be translated
2
- zh-tw: # <---- change this to your locale code
2
+ zh-TW: # <---- change this to your locale code
3
+ LanguageName: 臺灣話
3
4
  Dashboard: 資訊主頁
4
5
  Status: 狀態
5
6
  Time: 時間
@@ -1,34 +1,32 @@
1
- <div class="navbar navbar-fixed-bottom navbar-inverse ltr">
2
- <div class="navbar-inner">
3
- <div class="container text-center">
4
- <ul class="nav">
5
- <li>
6
- <p class="navbar-text product-version"><%= product_version %></p>
7
- </li>
8
- <li>
9
- <p class="navbar-text redis-url" title="<%= redis_url %>"><%= redis_url %></p>
10
- </li>
11
- <li>
12
- <p id="serverUtcTime" class="navbar-text server-utc-time"><%= server_utc_time %></p>
13
- </li>
14
- <li>
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
- <select id="locale-select" class="form-control" aria-label="<%= t("Language") %>" name="locale">
21
- <% available_locales.each do |locale_option| %>
22
- <% if locale_option == locale %>
23
- <option selected value="<%= locale_option %>"><%= locale_option %></option>
24
- <% else %>
25
- <option value="<%= locale_option %>"><%= locale_option %></option>
26
- <% end %>
27
- <% end %>
28
- </select>
29
- </form>
30
- </li>
31
- </ul>
32
- </div>
1
+ <footer>
2
+ <div class="container">
3
+ <ul class="nav">
4
+ <li>
5
+ <p><b><%= product_version %></b></p>
6
+ </li>
7
+ <li>
8
+ <p title="<%= redis_url %>"><%= redis_url %></p>
9
+ </li>
10
+ <li>
11
+ <p id="serverUtcTime"><%= server_utc_time %></p>
12
+ </li>
13
+ <li>
14
+ <p><a rel=help href="https://github.com/sidekiq/sidekiq/wiki">docs</a></p>
15
+ </li>
16
+ <li>
17
+ <form id="locale-form" action="<%= root_path %>change_locale" method="post">
18
+ <%= csrf_tag %>
19
+ <select id="locale-select" aria-label="<%= t("Language") %>" class="form-control" name="locale">
20
+ <% available_locales.each do |locale_option| %>
21
+ <% if locale_option == locale %>
22
+ <option selected value="<%= locale_option %>"><%= language_name(locale_option) %></option>
23
+ <% else %>
24
+ <option value="<%= locale_option %>"><%= language_name(locale_option) %></option>
25
+ <% end %>
26
+ <% end %>
27
+ </select>
28
+ </form>
29
+ </li>
30
+ </ul>
33
31
  </div>
34
- </div>
32
+ </footer>