sidekiq 8.1.5 → 8.1.7

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 (46) hide show
  1. checksums.yaml +4 -4
  2. data/Changes.md +16 -0
  3. data/README.md +2 -0
  4. data/bin/sidekiqload +2 -0
  5. data/lib/active_job/queue_adapters/sidekiq_adapter.rb +1 -1
  6. data/lib/sidekiq/api.rb +4 -3
  7. data/lib/sidekiq/client.rb +3 -3
  8. data/lib/sidekiq/config.rb +3 -7
  9. data/lib/sidekiq/job.rb +1 -1
  10. data/lib/sidekiq/job_retry.rb +7 -7
  11. data/lib/sidekiq/launcher.rb +1 -1
  12. data/lib/sidekiq/manager.rb +1 -0
  13. data/lib/sidekiq/metrics/query.rb +6 -1
  14. data/lib/sidekiq/paginator.rb +3 -0
  15. data/lib/sidekiq/processor.rb +5 -4
  16. data/lib/sidekiq/redis_client_adapter.rb +2 -2
  17. data/lib/sidekiq/testing.rb +1 -0
  18. data/lib/sidekiq/tui/tabs/base_tab.rb +41 -15
  19. data/lib/sidekiq/tui/tabs/busy.rb +2 -16
  20. data/lib/sidekiq/tui/tabs/dead.rb +0 -5
  21. data/lib/sidekiq/tui/tabs/home.rb +11 -40
  22. data/lib/sidekiq/tui/tabs/metrics.rb +2 -19
  23. data/lib/sidekiq/tui/tabs/queues.rb +2 -14
  24. data/lib/sidekiq/tui/tabs/retries.rb +0 -5
  25. data/lib/sidekiq/tui/tabs/scheduled.rb +0 -5
  26. data/lib/sidekiq/tui/tabs/set_tab.rb +15 -20
  27. data/lib/sidekiq/tui.rb +78 -70
  28. data/lib/sidekiq/version.rb +1 -1
  29. data/lib/sidekiq/web/action.rb +2 -2
  30. data/lib/sidekiq/web/application.rb +11 -2
  31. data/lib/sidekiq/web/helpers.rb +9 -14
  32. data/lib/sidekiq/web/router.rb +2 -2
  33. data/sidekiq.gemspec +2 -1
  34. data/web/locales/en.yml +1 -0
  35. data/web/locales/hi.yml +34 -0
  36. data/web/locales/ta.yml +81 -47
  37. data/web/views/_footer.html.erb +1 -1
  38. data/web/views/_job_info.html.erb +1 -1
  39. data/web/views/busy.html.erb +50 -46
  40. data/web/views/metrics.html.erb +1 -1
  41. data/web/views/metrics_for_job.html.erb +1 -1
  42. data/web/views/morgue.html.erb +1 -1
  43. data/web/views/profiles.html.erb +1 -1
  44. data/web/views/retries.html.erb +1 -1
  45. data/web/views/scheduled.html.erb +1 -1
  46. metadata +3 -2
@@ -27,6 +27,7 @@
27
27
  </div>
28
28
  </section>
29
29
 
30
+ <% if @show_processes %>
30
31
  <section>
31
32
  <header>
32
33
  <h2><%= t('Processes') %></h2>
@@ -44,7 +45,7 @@
44
45
  <thead>
45
46
  <th><%= t('Name') %></th>
46
47
  <th><%= t('Started') %></th>
47
- <th class="col-sm-1"><%= t('RSS') %><a target="blank" href="https://github.com/sidekiq/sidekiq/wiki/Memory#rss"><span class="info-circle" title="Click to learn more about RSS">?</span></a></th>
48
+ <th class="col-sm-1"><%= t('RSS') %><a target="blank" href="https://sidekiq.org/wiki/Memory#rss"><span class="info-circle" title="<%= t("ClickToLearnMore") %>">?</span></a></th>
48
49
  <th class="col-sm-1"><%= t('Threads') %></th>
49
50
  <th class="col-sm-1"><%= t('Busy') %></th>
50
51
  <th>&nbsp;</th>
@@ -102,50 +103,53 @@
102
103
  </table>
103
104
  </div>
104
105
  </section>
106
+ <% end %>
105
107
 
106
- <section>
107
- <header>
108
- <h2><%= t('Jobs') %></h2>
109
- <% if @workset.size > 0 && @total_size > @count %>
110
- <%= erb :_paging, locals: { url: "#{root_path}busy" } %>
111
- <% end %>
112
- </header>
113
-
114
- <div class="table_container">
115
- <table>
116
- <thead>
117
- <th><%= t('Process') %></th>
118
- <th><%= t('TID') %></th>
119
- <th><%= t('JID') %></th>
120
- <th><%= t('Queue') %></th>
121
- <th><%= t('Job') %></th>
122
- <th><%= t('Arguments') %></th>
123
- <th><%= t('Started') %></th>
124
- </thead>
125
- <% @workset.each do |process, thread, work| %>
126
- <% job = work.job %>
127
- <tr>
128
- <td><%= process %></td>
129
- <td><%= thread %></td>
130
- <td><%= job.jid %></td>
131
- <td>
132
- <a href="<%= root_path %>queues/<%= work.queue %>"><%= work.queue %></a>
133
- </td>
134
- <td>
135
- <%= job.display_class %>
136
- <%= display_tags(job, nil) %>
137
- </td>
138
- <td>
139
- <code><div class="args"><%= display_args(job.display_args) %></div></code>
140
- </td>
141
- <td>
142
- <%= relative_time(work.run_at) %>
143
- <% if (state = @iterable_states[job.jid]) %>
144
- <div><small>cursor=<%= h(truncate(state.cursor.inspect, 100)) %>; exec=<%= state.executions %>; rt=<%= number_with_delimiter(state.runtime, precision: 3) %>s</small></div>
145
- <% end %>
146
- </td>
147
- </tr>
108
+ <% if @show_jobs %>
109
+ <section>
110
+ <header>
111
+ <h2><%= t('Jobs') %></h2>
112
+ <% if @workset.size > 0 && @total_size > @count %>
113
+ <%= erb :_paging, locals: { url: "#{root_path}busy" } %>
148
114
  <% end %>
149
- </table>
150
- </div>
151
- </section>
115
+ </header>
116
+
117
+ <div class="table_container">
118
+ <table>
119
+ <thead>
120
+ <th><%= t('Process') %></th>
121
+ <th><%= t('TID') %></th>
122
+ <th><%= t('JID') %></th>
123
+ <th><%= t('Queue') %></th>
124
+ <th><%= t('Job') %></th>
125
+ <th><%= t('Arguments') %></th>
126
+ <th><%= t('Started') %></th>
127
+ </thead>
128
+ <% @workset.each do |process, thread, work| %>
129
+ <% job = work.job %>
130
+ <tr>
131
+ <td><%= process %></td>
132
+ <td><%= thread %></td>
133
+ <td><%= job.jid %></td>
134
+ <td>
135
+ <a href="<%= root_path %>queues/<%= CGI.escape(work.queue) %>"><%= h work.queue %></a>
136
+ </td>
137
+ <td>
138
+ <%= job.display_class %>
139
+ <%= display_tags(job, nil) %>
140
+ </td>
141
+ <td>
142
+ <code><div class="args"><%= display_args(job.display_args) %></div></code>
143
+ </td>
144
+ <td>
145
+ <%= relative_time(work.run_at) %>
146
+ <% if (state = @iterable_states[job.jid]) %>
147
+ <div><small>cursor=<%= h(truncate(state.cursor.inspect, 100)) %>; exec=<%= state.executions %>; rt=<%= number_with_delimiter(state.runtime, precision: 3) %>s</small></div>
148
+ <% end %>
149
+ </td>
150
+ </tr>
151
+ <% end %>
152
+ </table>
153
+ </div>
154
+ </section>
155
+ <% end %>
@@ -7,7 +7,7 @@
7
7
  <header>
8
8
  <h1>
9
9
  <%= t('Metrics') %>
10
- <a target="blank" href="https://github.com/sidekiq/sidekiq/wiki/Metrics"><span class="info-circle" title="Click to learn more about metrics">?</span></a>
10
+ <a target="blank" href="https://sidekiq.org/wiki/Metrics"><span class="info-circle" title="<%= t("ClickToLearnMore") %>">?</span></a>
11
11
  </h1>
12
12
 
13
13
  <%= erb :_metrics_period_select, locals: { periods: @periods, period: @period, path: "#{root_path}metrics" } %>
@@ -15,7 +15,7 @@
15
15
  <h1>
16
16
  <a href="<%= root_path %>metrics?period=<%= @period %>"><%= t('Metrics') %></a> /
17
17
  <%= h @name %>
18
- <a target="blank" href="https://github.com/sidekiq/sidekiq/wiki/Metrics"><span class="info-circle" title="Click to learn more about metrics">?</span></a>
18
+ <a target="blank" href="https://sidekiq.org/wiki/Metrics"><span class="info-circle" title="<%= t("ClickToLearnMore") %>">?</span></a>
19
19
  </h1>
20
20
  <%= erb :_metrics_period_select, locals: { periods: @periods, period: @period, path: "#{root_path}metrics/#{@name}" } %>
21
21
  </header>
@@ -37,7 +37,7 @@
37
37
  <a href="<%= root_path %>morgue/<%= job_params(entry.item, entry.score) %>"><%= relative_time(entry.at) %></a>
38
38
  </td>
39
39
  <td>
40
- <a href="<%= root_path %>queues/<%= entry.queue %>"><%= entry.queue %></a>
40
+ <a href="<%= root_path %>queues/<%= CGI.escape(entry.queue) if entry.queue %>"><%= h entry.queue %></a>
41
41
  </td>
42
42
  <td>
43
43
  <%= entry.display_class %>
@@ -2,7 +2,7 @@
2
2
  <header>
3
3
  <h1>
4
4
  <%= t('Profiles') %>
5
- <a target="blank" href="https://github.com/sidekiq/sidekiq/wiki/Profiling"><span class="info-circle" title="Click to learn more about profiling">?</span></a>
5
+ <a target="blank" href="https://sidekiq.org/wiki/Profiling"><span class="info-circle" title="<%= t("ClickToLearnMore") %>">?</span></a>
6
6
  </h1>
7
7
  </header>
8
8
 
@@ -39,7 +39,7 @@
39
39
  </td>
40
40
  <td><%= entry['retry_count'] %></td>
41
41
  <td>
42
- <a href="<%= root_path %>queues/<%= entry.queue %>"><%= entry.queue %></a>
42
+ <a href="<%= root_path %>queues/<%= CGI.escape(entry.queue) %>"><%= h entry.queue %></a>
43
43
  </td>
44
44
  <td>
45
45
  <%= entry.display_class %>
@@ -36,7 +36,7 @@
36
36
  <a href="<%= root_path %>scheduled/<%= job_params(entry.item, entry.score) %>"><%= relative_time(entry.at) %></a>
37
37
  </td>
38
38
  <td>
39
- <a href="<%= root_path %>queues/<%= entry.queue %>"><%= entry.queue %></a>
39
+ <a href="<%= root_path %>queues/<%= CGI.escape(entry.queue) %>"><%= h entry.queue %></a>
40
40
  </td>
41
41
  <td>
42
42
  <%= entry.display_class %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.1.5
4
+ version: 8.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Perham
@@ -247,6 +247,7 @@ metadata:
247
247
  changelog_uri: https://github.com/sidekiq/sidekiq/blob/main/Changes.md
248
248
  source_code_uri: https://github.com/sidekiq/sidekiq
249
249
  rubygems_mfa_required: 'true'
250
+ mailing_list_uri: https://www.rubyforum.org/tag/sidekiq
250
251
  rdoc_options: []
251
252
  require_paths:
252
253
  - lib
@@ -261,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
262
  - !ruby/object:Gem::Version
262
263
  version: '0'
263
264
  requirements: []
264
- rubygems_version: 4.0.6
265
+ rubygems_version: 4.0.16
265
266
  specification_version: 4
266
267
  summary: Simple, efficient background processing for Ruby
267
268
  test_files: []