sidekiq 5.2.7 → 7.0.2
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 +465 -5
- data/LICENSE.txt +9 -0
- data/README.md +32 -42
- data/bin/sidekiq +22 -3
- data/bin/sidekiqload +80 -77
- data/bin/sidekiqmon +8 -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 +506 -351
- data/lib/sidekiq/capsule.rb +110 -0
- data/lib/sidekiq/cli.rb +202 -226
- data/lib/sidekiq/client.rb +104 -95
- data/lib/sidekiq/component.rb +66 -0
- data/lib/sidekiq/config.rb +270 -0
- data/lib/sidekiq/deploy.rb +62 -0
- data/lib/sidekiq/embedded.rb +61 -0
- data/lib/sidekiq/fetch.rb +49 -40
- data/lib/sidekiq/job.rb +378 -0
- data/lib/sidekiq/job_logger.rb +33 -7
- data/lib/sidekiq/job_retry.rb +127 -107
- data/lib/sidekiq/job_util.rb +71 -0
- data/lib/sidekiq/launcher.rb +197 -103
- data/lib/sidekiq/logger.rb +131 -0
- data/lib/sidekiq/manager.rb +43 -46
- data/lib/sidekiq/metrics/query.rb +153 -0
- data/lib/sidekiq/metrics/shared.rb +95 -0
- data/lib/sidekiq/metrics/tracking.rb +134 -0
- data/lib/sidekiq/middleware/chain.rb +104 -50
- data/lib/sidekiq/middleware/current_attributes.rb +58 -0
- data/lib/sidekiq/middleware/i18n.rb +7 -7
- data/lib/sidekiq/middleware/modules.rb +21 -0
- data/lib/sidekiq/monitor.rb +148 -0
- data/lib/sidekiq/paginator.rb +28 -16
- data/lib/sidekiq/processor.rb +105 -107
- data/lib/sidekiq/rails.rb +41 -37
- data/lib/sidekiq/redis_client_adapter.rb +115 -0
- data/lib/sidekiq/redis_connection.rb +38 -107
- data/lib/sidekiq/ring_buffer.rb +29 -0
- data/lib/sidekiq/scheduled.rb +111 -49
- 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 +66 -84
- data/lib/sidekiq/transaction_aware_client.rb +44 -0
- data/lib/sidekiq/version.rb +3 -1
- data/lib/sidekiq/web/action.rb +15 -11
- data/lib/sidekiq/web/application.rb +108 -79
- data/lib/sidekiq/web/csrf_protection.rb +180 -0
- data/lib/sidekiq/web/helpers.rb +128 -105
- data/lib/sidekiq/web/router.rb +23 -19
- data/lib/sidekiq/web.rb +56 -107
- data/lib/sidekiq/worker_compatibility_alias.rb +13 -0
- data/lib/sidekiq.rb +92 -182
- data/sidekiq.gemspec +45 -16
- data/web/assets/images/apple-touch-icon.png +0 -0
- data/web/assets/javascripts/application.js +130 -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 +166 -0
- data/web/assets/javascripts/dashboard.js +36 -292
- data/web/assets/javascripts/metrics.js +236 -0
- data/web/assets/stylesheets/application-dark.css +147 -0
- data/web/assets/stylesheets/application-rtl.css +2 -95
- data/web/assets/stylesheets/application.css +102 -522
- data/web/locales/ar.yml +71 -65
- data/web/locales/cs.yml +62 -62
- data/web/locales/da.yml +52 -52
- data/web/locales/de.yml +65 -53
- data/web/locales/el.yml +43 -24
- data/web/locales/en.yml +84 -66
- data/web/locales/es.yml +70 -54
- data/web/locales/fa.yml +65 -65
- data/web/locales/fr.yml +69 -62
- 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 +73 -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 +63 -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 +6 -3
- data/web/views/_job_info.erb +19 -2
- data/web/views/_nav.erb +1 -1
- data/web/views/_poll_link.erb +3 -6
- data/web/views/_summary.erb +7 -7
- data/web/views/busy.erb +74 -22
- data/web/views/dashboard.erb +58 -18
- data/web/views/dead.erb +3 -3
- data/web/views/layout.erb +3 -1
- data/web/views/metrics.erb +80 -0
- data/web/views/metrics_for_job.erb +69 -0
- data/web/views/morgue.erb +10 -7
- data/web/views/queue.erb +23 -10
- data/web/views/queues.erb +10 -2
- data/web/views/retries.erb +12 -9
- data/web/views/retry.erb +3 -3
- data/web/views/scheduled.erb +6 -3
- metadata +84 -69
- data/.circleci/config.yml +0 -61
- data/.github/contributing.md +0 -32
- data/.github/issue_template.md +0 -11
- data/.gitignore +0 -15
- data/.travis.yml +0 -11
- data/3.0-Upgrade.md +0 -70
- data/4.0-Upgrade.md +0 -53
- data/5.0-Upgrade.md +0 -56
- data/COMM-LICENSE +0 -97
- data/Ent-Changes.md +0 -238
- data/Gemfile +0 -23
- 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 -759
- data/Rakefile +0 -9
- data/bin/sidekiqctl +0 -20
- data/code_of_conduct.md +0 -50
- data/lib/generators/sidekiq/worker_generator.rb +0 -49
- data/lib/sidekiq/core_ext.rb +0 -1
- data/lib/sidekiq/ctl.rb +0 -221
- 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 -220
data/web/views/retries.erb
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
<form action="<%= root_path %>retries" method="post">
|
15
15
|
<%= csrf_tag %>
|
16
16
|
<div class="table_container">
|
17
|
-
<table class="table table-striped table-bordered table-
|
17
|
+
<table class="table table-striped table-bordered table-hover">
|
18
18
|
<thead>
|
19
19
|
<tr>
|
20
20
|
<th class="table-checkbox checkbox-column">
|
@@ -34,7 +34,7 @@
|
|
34
34
|
<tr>
|
35
35
|
<td class="table-checkbox">
|
36
36
|
<label>
|
37
|
-
<input type='checkbox' name='key[]' value='<%= job_params(entry.item, entry.score) %>' />
|
37
|
+
<input type='checkbox' name='key[]' value='<%= job_params(entry.item, entry.score) %>' class='shift_clickable' />
|
38
38
|
</label>
|
39
39
|
</td>
|
40
40
|
<td>
|
@@ -44,7 +44,10 @@
|
|
44
44
|
<td>
|
45
45
|
<a href="<%= root_path %>queues/<%= entry.queue %>"><%= entry.queue %></a>
|
46
46
|
</td>
|
47
|
-
<td
|
47
|
+
<td>
|
48
|
+
<%= entry.display_class %>
|
49
|
+
<%= display_tags(entry, "retries") %>
|
50
|
+
</td>
|
48
51
|
<td>
|
49
52
|
<div class="args"><%= display_args(entry.display_args) %></div>
|
50
53
|
</td>
|
@@ -55,23 +58,23 @@
|
|
55
58
|
<% end %>
|
56
59
|
</table>
|
57
60
|
</div>
|
58
|
-
<input class="btn btn-primary
|
59
|
-
<input class="btn btn-danger
|
60
|
-
<input class="btn btn-danger
|
61
|
+
<input class="btn btn-primary pull-left flip" type="submit" name="retry" value="<%= t('RetryNow') %>" />
|
62
|
+
<input class="btn btn-danger pull-left flip" type="submit" name="delete" value="<%= t('Delete') %>" />
|
63
|
+
<input class="btn btn-danger pull-left flip" type="submit" name="kill" value="<%= t('Kill') %>" />
|
61
64
|
</form>
|
62
65
|
|
63
66
|
<% unfiltered? do %>
|
64
67
|
<form action="<%= root_path %>retries/all/delete" method="post">
|
65
68
|
<%= csrf_tag %>
|
66
|
-
<input class="btn btn-danger
|
69
|
+
<input class="btn btn-danger pull-right flip" type="submit" name="delete" value="<%= t('DeleteAll') %>" data-confirm="<%= t('AreYouSure') %>" />
|
67
70
|
</form>
|
68
71
|
<form action="<%= root_path %>retries/all/retry" method="post">
|
69
72
|
<%= csrf_tag %>
|
70
|
-
<input class="btn btn-danger
|
73
|
+
<input class="btn btn-danger pull-right flip" type="submit" name="retry" value="<%= t('RetryAll') %>" data-confirm="<%= t('AreYouSure') %>" />
|
71
74
|
</form>
|
72
75
|
<form action="<%= root_path %>retries/all/kill" method="post">
|
73
76
|
<%= csrf_tag %>
|
74
|
-
<input class="btn btn-danger
|
77
|
+
<input class="btn btn-danger pull-right flip" type="submit" name="kill" value="<%= t('KillAll') %>" data-confirm="<%= t('AreYouSure') %>" />
|
75
78
|
</form>
|
76
79
|
<% end %>
|
77
80
|
|
data/web/views/retry.erb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
<h3><%= t('Error') %></h3>
|
4
4
|
<div class="table_container">
|
5
|
-
<table class="error table table-bordered table-striped">
|
5
|
+
<table class="error table table-bordered table-striped table-hover">
|
6
6
|
<tbody>
|
7
7
|
<tr>
|
8
8
|
<th><%= t('ErrorClass') %></th>
|
@@ -14,11 +14,11 @@
|
|
14
14
|
<th><%= t('ErrorMessage') %></th>
|
15
15
|
<td><%= h(@retry['error_message']) %></td>
|
16
16
|
</tr>
|
17
|
-
<% if
|
17
|
+
<% if @retry.error_backtrace %>
|
18
18
|
<tr>
|
19
19
|
<th><%= t('ErrorBacktrace') %></th>
|
20
20
|
<td>
|
21
|
-
<code><%= @retry
|
21
|
+
<code><%= @retry.error_backtrace.join("<br/>") %></code>
|
22
22
|
</td>
|
23
23
|
</tr>
|
24
24
|
<% end %>
|
data/web/views/scheduled.erb
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
<form action="<%= root_path %>scheduled" method="post">
|
16
16
|
<%= csrf_tag %>
|
17
17
|
<div class="table_container">
|
18
|
-
<table class="table table-striped table-bordered table-
|
18
|
+
<table class="table table-striped table-bordered table-hover">
|
19
19
|
<thead>
|
20
20
|
<tr>
|
21
21
|
<th class="checkbox-column">
|
@@ -30,7 +30,7 @@
|
|
30
30
|
<% @scheduled.each do |entry| %>
|
31
31
|
<tr>
|
32
32
|
<td>
|
33
|
-
<input type='checkbox' name='key[]' value='<%= job_params(entry.item, entry.score) %>' />
|
33
|
+
<input type='checkbox' name='key[]' value='<%= job_params(entry.item, entry.score) %>' class='shift_clickable' />
|
34
34
|
</td>
|
35
35
|
<td>
|
36
36
|
<a href="<%= root_path %>scheduled/<%= job_params(entry.item, entry.score) %>"><%= relative_time(entry.at) %></a>
|
@@ -38,7 +38,10 @@
|
|
38
38
|
<td>
|
39
39
|
<a href="<%= root_path %>queues/<%= entry.queue %>"><%= entry.queue %></a>
|
40
40
|
</td>
|
41
|
-
<td
|
41
|
+
<td>
|
42
|
+
<%= entry.display_class %>
|
43
|
+
<%= display_tags(entry, "scheduled") %>
|
44
|
+
</td>
|
42
45
|
<td>
|
43
46
|
<div class="args"><%= display_args(entry.display_args) %></div>
|
44
47
|
</td>
|
metadata
CHANGED
@@ -1,161 +1,148 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 7.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Perham
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: redis
|
14
|
+
name: redis-client
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '5'
|
19
|
+
version: 0.11.0
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '5'
|
26
|
+
version: 0.11.0
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: connection_pool
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '2.2'
|
40
31
|
- - ">="
|
41
32
|
- !ruby/object:Gem::Version
|
42
|
-
version: 2.
|
33
|
+
version: 2.3.0
|
43
34
|
type: :runtime
|
44
35
|
prerelease: false
|
45
36
|
version_requirements: !ruby/object:Gem::Requirement
|
46
37
|
requirements:
|
47
|
-
- - "~>"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '2.2'
|
50
38
|
- - ">="
|
51
39
|
- !ruby/object:Gem::Version
|
52
|
-
version: 2.
|
40
|
+
version: 2.3.0
|
53
41
|
- !ruby/object:Gem::Dependency
|
54
42
|
name: rack
|
55
43
|
requirement: !ruby/object:Gem::Requirement
|
56
44
|
requirements:
|
57
45
|
- - ">="
|
58
46
|
- !ruby/object:Gem::Version
|
59
|
-
version:
|
47
|
+
version: 2.2.4
|
60
48
|
type: :runtime
|
61
49
|
prerelease: false
|
62
50
|
version_requirements: !ruby/object:Gem::Requirement
|
63
51
|
requirements:
|
64
52
|
- - ">="
|
65
53
|
- !ruby/object:Gem::Version
|
66
|
-
version:
|
54
|
+
version: 2.2.4
|
67
55
|
- !ruby/object:Gem::Dependency
|
68
|
-
name:
|
56
|
+
name: concurrent-ruby
|
69
57
|
requirement: !ruby/object:Gem::Requirement
|
70
58
|
requirements:
|
71
|
-
- - "
|
59
|
+
- - "<"
|
72
60
|
- !ruby/object:Gem::Version
|
73
|
-
version:
|
61
|
+
version: '2'
|
74
62
|
type: :runtime
|
75
63
|
prerelease: false
|
76
64
|
version_requirements: !ruby/object:Gem::Requirement
|
77
65
|
requirements:
|
78
|
-
- - "
|
66
|
+
- - "<"
|
79
67
|
- !ruby/object:Gem::Version
|
80
|
-
version:
|
68
|
+
version: '2'
|
81
69
|
description: Simple, efficient background processing for Ruby.
|
82
70
|
email:
|
83
71
|
- mperham@gmail.com
|
84
72
|
executables:
|
85
73
|
- sidekiq
|
86
|
-
-
|
74
|
+
- sidekiqmon
|
87
75
|
extensions: []
|
88
76
|
extra_rdoc_files: []
|
89
77
|
files:
|
90
|
-
- ".circleci/config.yml"
|
91
|
-
- ".github/contributing.md"
|
92
|
-
- ".github/issue_template.md"
|
93
|
-
- ".gitignore"
|
94
|
-
- ".travis.yml"
|
95
|
-
- 3.0-Upgrade.md
|
96
|
-
- 4.0-Upgrade.md
|
97
|
-
- 5.0-Upgrade.md
|
98
|
-
- COMM-LICENSE
|
99
78
|
- Changes.md
|
100
|
-
-
|
101
|
-
- Gemfile
|
102
|
-
- LICENSE
|
103
|
-
- Pro-2.0-Upgrade.md
|
104
|
-
- Pro-3.0-Upgrade.md
|
105
|
-
- Pro-4.0-Upgrade.md
|
106
|
-
- Pro-Changes.md
|
79
|
+
- LICENSE.txt
|
107
80
|
- README.md
|
108
|
-
- Rakefile
|
109
81
|
- bin/sidekiq
|
110
|
-
- bin/sidekiqctl
|
111
82
|
- bin/sidekiqload
|
112
|
-
-
|
113
|
-
- lib/generators/sidekiq/
|
114
|
-
- lib/generators/sidekiq/templates/
|
115
|
-
- lib/generators/sidekiq/templates/
|
116
|
-
- lib/generators/sidekiq/
|
83
|
+
- bin/sidekiqmon
|
84
|
+
- lib/generators/sidekiq/job_generator.rb
|
85
|
+
- lib/generators/sidekiq/templates/job.rb.erb
|
86
|
+
- lib/generators/sidekiq/templates/job_spec.rb.erb
|
87
|
+
- lib/generators/sidekiq/templates/job_test.rb.erb
|
117
88
|
- lib/sidekiq.rb
|
118
89
|
- lib/sidekiq/api.rb
|
90
|
+
- lib/sidekiq/capsule.rb
|
119
91
|
- lib/sidekiq/cli.rb
|
120
92
|
- lib/sidekiq/client.rb
|
121
|
-
- lib/sidekiq/
|
122
|
-
- lib/sidekiq/
|
123
|
-
- lib/sidekiq/
|
124
|
-
- lib/sidekiq/
|
125
|
-
- lib/sidekiq/extensions/action_mailer.rb
|
126
|
-
- lib/sidekiq/extensions/active_record.rb
|
127
|
-
- lib/sidekiq/extensions/class_methods.rb
|
128
|
-
- lib/sidekiq/extensions/generic_proxy.rb
|
93
|
+
- lib/sidekiq/component.rb
|
94
|
+
- lib/sidekiq/config.rb
|
95
|
+
- lib/sidekiq/deploy.rb
|
96
|
+
- lib/sidekiq/embedded.rb
|
129
97
|
- lib/sidekiq/fetch.rb
|
98
|
+
- lib/sidekiq/job.rb
|
130
99
|
- lib/sidekiq/job_logger.rb
|
131
100
|
- lib/sidekiq/job_retry.rb
|
101
|
+
- lib/sidekiq/job_util.rb
|
132
102
|
- lib/sidekiq/launcher.rb
|
133
|
-
- lib/sidekiq/
|
103
|
+
- lib/sidekiq/logger.rb
|
134
104
|
- lib/sidekiq/manager.rb
|
105
|
+
- lib/sidekiq/metrics/query.rb
|
106
|
+
- lib/sidekiq/metrics/shared.rb
|
107
|
+
- lib/sidekiq/metrics/tracking.rb
|
135
108
|
- lib/sidekiq/middleware/chain.rb
|
109
|
+
- lib/sidekiq/middleware/current_attributes.rb
|
136
110
|
- lib/sidekiq/middleware/i18n.rb
|
137
|
-
- lib/sidekiq/middleware/
|
111
|
+
- lib/sidekiq/middleware/modules.rb
|
112
|
+
- lib/sidekiq/monitor.rb
|
138
113
|
- lib/sidekiq/paginator.rb
|
139
114
|
- lib/sidekiq/processor.rb
|
140
115
|
- lib/sidekiq/rails.rb
|
116
|
+
- lib/sidekiq/redis_client_adapter.rb
|
141
117
|
- lib/sidekiq/redis_connection.rb
|
118
|
+
- lib/sidekiq/ring_buffer.rb
|
142
119
|
- lib/sidekiq/scheduled.rb
|
120
|
+
- lib/sidekiq/sd_notify.rb
|
121
|
+
- lib/sidekiq/systemd.rb
|
143
122
|
- lib/sidekiq/testing.rb
|
144
123
|
- lib/sidekiq/testing/inline.rb
|
145
|
-
- lib/sidekiq/
|
124
|
+
- lib/sidekiq/transaction_aware_client.rb
|
146
125
|
- lib/sidekiq/version.rb
|
147
126
|
- lib/sidekiq/web.rb
|
148
127
|
- lib/sidekiq/web/action.rb
|
149
128
|
- lib/sidekiq/web/application.rb
|
129
|
+
- lib/sidekiq/web/csrf_protection.rb
|
150
130
|
- lib/sidekiq/web/helpers.rb
|
151
131
|
- lib/sidekiq/web/router.rb
|
152
|
-
- lib/sidekiq/
|
132
|
+
- lib/sidekiq/worker_compatibility_alias.rb
|
153
133
|
- sidekiq.gemspec
|
134
|
+
- web/assets/images/apple-touch-icon.png
|
154
135
|
- web/assets/images/favicon.ico
|
155
136
|
- web/assets/images/logo.png
|
156
137
|
- web/assets/images/status.png
|
157
138
|
- web/assets/javascripts/application.js
|
139
|
+
- web/assets/javascripts/base-charts.js
|
140
|
+
- web/assets/javascripts/chart.min.js
|
141
|
+
- web/assets/javascripts/chartjs-plugin-annotation.min.js
|
142
|
+
- web/assets/javascripts/dashboard-charts.js
|
158
143
|
- web/assets/javascripts/dashboard.js
|
144
|
+
- web/assets/javascripts/metrics.js
|
145
|
+
- web/assets/stylesheets/application-dark.css
|
159
146
|
- web/assets/stylesheets/application-rtl.css
|
160
147
|
- web/assets/stylesheets/application.css
|
161
148
|
- web/assets/stylesheets/bootstrap-rtl.min.css
|
@@ -174,6 +161,7 @@ files:
|
|
174
161
|
- web/locales/it.yml
|
175
162
|
- web/locales/ja.yml
|
176
163
|
- web/locales/ko.yml
|
164
|
+
- web/locales/lt.yml
|
177
165
|
- web/locales/nb.yml
|
178
166
|
- web/locales/nl.yml
|
179
167
|
- web/locales/pl.yml
|
@@ -184,6 +172,7 @@ files:
|
|
184
172
|
- web/locales/ta.yml
|
185
173
|
- web/locales/uk.yml
|
186
174
|
- web/locales/ur.yml
|
175
|
+
- web/locales/vi.yml
|
187
176
|
- web/locales/zh-cn.yml
|
188
177
|
- web/locales/zh-tw.yml
|
189
178
|
- web/views/_footer.erb
|
@@ -197,6 +186,8 @@ files:
|
|
197
186
|
- web/views/dashboard.erb
|
198
187
|
- web/views/dead.erb
|
199
188
|
- web/views/layout.erb
|
189
|
+
- web/views/metrics.erb
|
190
|
+
- web/views/metrics_for_job.erb
|
200
191
|
- web/views/morgue.erb
|
201
192
|
- web/views/queue.erb
|
202
193
|
- web/views/queues.erb
|
@@ -204,11 +195,35 @@ files:
|
|
204
195
|
- web/views/retry.erb
|
205
196
|
- web/views/scheduled.erb
|
206
197
|
- web/views/scheduled_job_info.erb
|
207
|
-
homepage:
|
198
|
+
homepage: https://sidekiq.org
|
208
199
|
licenses:
|
209
200
|
- LGPL-3.0
|
210
|
-
metadata:
|
211
|
-
|
201
|
+
metadata:
|
202
|
+
homepage_uri: https://sidekiq.org
|
203
|
+
bug_tracker_uri: https://github.com/mperham/sidekiq/issues
|
204
|
+
documentation_uri: https://github.com/mperham/sidekiq/wiki
|
205
|
+
changelog_uri: https://github.com/mperham/sidekiq/blob/main/Changes.md
|
206
|
+
source_code_uri: https://github.com/mperham/sidekiq
|
207
|
+
post_install_message: |2
|
208
|
+
|
209
|
+
####################################################
|
210
|
+
|
211
|
+
|
212
|
+
█████████ █████ ██████████ ██████████ █████ ████ █████ ██████ ██████████ █████
|
213
|
+
███░░░░░███░░███ ░░███░░░░███ ░░███░░░░░█░░███ ███░ ░░███ ███░░░░███ ░███░░░░███ ███░░░███
|
214
|
+
░███ ░░░ ░███ ░███ ░░███ ░███ █ ░ ░███ ███ ░███ ███ ░░███ ░░░ ███ ███ ░░███
|
215
|
+
░░█████████ ░███ ░███ ░███ ░██████ ░███████ ░███ ░███ ░███ ███ ░███ ░███
|
216
|
+
░░░░░░░░███ ░███ ░███ ░███ ░███░░█ ░███░░███ ░███ ░███ ██░███ ███ ░███ ░███
|
217
|
+
███ ░███ ░███ ░███ ███ ░███ ░ █ ░███ ░░███ ░███ ░░███ ░░████ ███ ░░███ ███
|
218
|
+
░░█████████ █████ ██████████ ██████████ █████ ░░████ █████ ░░░██████░██ ███ ██ ░░░█████░
|
219
|
+
░░░░░░░░░ ░░░░░ ░░░░░░░░░░ ░░░░░░░░░░ ░░░░░ ░░░░ ░░░░░ ░░░░░░ ░░ ░░░ ░░ ░░░░░░
|
220
|
+
|
221
|
+
|
222
|
+
1. Use `gem 'sidekiq', '<7'` in your Gemfile if you don't want this new version.
|
223
|
+
2. Read the release notes at https://github.com/mperham/sidekiq/blob/main/docs/7.0-Upgrade.md
|
224
|
+
3. Search for open/closed issues at https://github.com/mperham/sidekiq/issues/
|
225
|
+
|
226
|
+
####################################################
|
212
227
|
rdoc_options: []
|
213
228
|
require_paths:
|
214
229
|
- lib
|
@@ -216,15 +231,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
216
231
|
requirements:
|
217
232
|
- - ">="
|
218
233
|
- !ruby/object:Gem::Version
|
219
|
-
version: 2.
|
234
|
+
version: 2.7.0
|
220
235
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
221
236
|
requirements:
|
222
237
|
- - ">="
|
223
238
|
- !ruby/object:Gem::Version
|
224
239
|
version: '0'
|
225
240
|
requirements: []
|
226
|
-
rubygems_version: 3.
|
227
|
-
signing_key:
|
241
|
+
rubygems_version: 3.2.32
|
242
|
+
signing_key:
|
228
243
|
specification_version: 4
|
229
244
|
summary: Simple, efficient background processing for Ruby
|
230
245
|
test_files: []
|
data/.circleci/config.yml
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
version: 2
|
2
|
-
references:
|
3
|
-
unit: &unit
|
4
|
-
run:
|
5
|
-
name: Run test suite
|
6
|
-
command: bundle exec rake
|
7
|
-
restore: &restore
|
8
|
-
restore_cache:
|
9
|
-
keys:
|
10
|
-
- v1-dependencies-{{ checksum "Gemfile.lock" }}
|
11
|
-
# fallback to using the latest cache if no exact match is found
|
12
|
-
- v1-dependencies-
|
13
|
-
bundle: &bundle
|
14
|
-
run:
|
15
|
-
name: install dependencies
|
16
|
-
command: |
|
17
|
-
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
18
|
-
save: &save
|
19
|
-
save_cache:
|
20
|
-
paths:
|
21
|
-
- ./vendor/bundle
|
22
|
-
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
|
23
|
-
jobs:
|
24
|
-
"ruby-2.5":
|
25
|
-
docker:
|
26
|
-
- image: circleci/ruby:2.5
|
27
|
-
- image: circleci/redis:4.0
|
28
|
-
steps:
|
29
|
-
- checkout
|
30
|
-
- <<: *restore
|
31
|
-
- <<: *bundle
|
32
|
-
- <<: *save
|
33
|
-
- <<: *unit
|
34
|
-
"ruby-2.6":
|
35
|
-
docker:
|
36
|
-
- image: circleci/ruby:2.6
|
37
|
-
- image: circleci/redis:4.0
|
38
|
-
steps:
|
39
|
-
- checkout
|
40
|
-
- <<: *restore
|
41
|
-
- <<: *bundle
|
42
|
-
- <<: *save
|
43
|
-
- <<: *unit
|
44
|
-
"jruby":
|
45
|
-
docker:
|
46
|
-
- image: circleci/jruby:latest
|
47
|
-
- image: circleci/redis:4.0
|
48
|
-
steps:
|
49
|
-
- checkout
|
50
|
-
- <<: *restore
|
51
|
-
- <<: *bundle
|
52
|
-
- <<: *save
|
53
|
-
- <<: *unit
|
54
|
-
|
55
|
-
workflows:
|
56
|
-
version: 2
|
57
|
-
build:
|
58
|
-
jobs:
|
59
|
-
- "ruby-2.5"
|
60
|
-
- "ruby-2.6"
|
61
|
-
- "jruby"
|
data/.github/contributing.md
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
# Contributing
|
2
|
-
|
3
|
-
## Issues
|
4
|
-
|
5
|
-
When opening an issue:
|
6
|
-
|
7
|
-
* include the full **backtrace** with your error
|
8
|
-
* include your Sidekiq initializer
|
9
|
-
* list versions you are using: Ruby, Rails, Sidekiq, OS, etc.
|
10
|
-
|
11
|
-
It's always better to include more info rather than less.
|
12
|
-
|
13
|
-
## Code
|
14
|
-
|
15
|
-
It's always best to open an issue before investing a lot of time into a
|
16
|
-
fix or new functionality. Functionality must meet my design goals and
|
17
|
-
vision for the project to be accepted; I would be happy to discuss how
|
18
|
-
your idea can best fit into Sidekiq.
|
19
|
-
|
20
|
-
## Legal
|
21
|
-
|
22
|
-
By submitting a Pull Request, you disavow any rights or claims to any changes
|
23
|
-
submitted to the Sidekiq project and assign the copyright of
|
24
|
-
those changes to Contributed Systems LLC.
|
25
|
-
|
26
|
-
If you cannot or do not want to reassign those rights (your employment
|
27
|
-
contract for your employer may not allow this), you should not submit a PR.
|
28
|
-
Open an issue and someone else can do the work.
|
29
|
-
|
30
|
-
This is a legal way of saying "If you submit a PR to us, that code becomes ours".
|
31
|
-
99.9% of the time that's what you intend anyways; we hope it doesn't scare you
|
32
|
-
away from contributing.
|
data/.github/issue_template.md
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
Ruby version:
|
2
|
-
Sidekiq / Pro / Enterprise version(s):
|
3
|
-
|
4
|
-
Please include your initializer and any error message with the full backtrace.
|
5
|
-
|
6
|
-
Are you using an old version?
|
7
|
-
Have you checked the changelogs to see if your issue has been fixed in a later version?
|
8
|
-
|
9
|
-
https://github.com/mperham/sidekiq/blob/master/Changes.md
|
10
|
-
https://github.com/mperham/sidekiq/blob/master/Pro-Changes.md
|
11
|
-
https://github.com/mperham/sidekiq/blob/master/Ent-Changes.md
|
data/.gitignore
DELETED
data/.travis.yml
DELETED
data/3.0-Upgrade.md
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
# Upgrading to Sidekiq 3.0
|
2
|
-
|
3
|
-
Sidekiq 3.0 brings several new features but also removes old APIs and
|
4
|
-
changes a few data elements in Redis. To upgrade cleanly:
|
5
|
-
|
6
|
-
* Upgrade to the latest Sidekiq 2.x and run it for a few weeks.
|
7
|
-
`gem 'sidekiq', '< 3'`
|
8
|
-
This is only needed if you have retries pending.
|
9
|
-
* 3rd party gems which use **client-side middleware** will need to update
|
10
|
-
due to an API change. The Redis connection for a particular job is
|
11
|
-
passed thru the middleware to handle sharding where jobs can
|
12
|
-
be pushed to different redis server instances.
|
13
|
-
|
14
|
-
`def call(worker_class, msg, queue, redis_pool)`
|
15
|
-
|
16
|
-
Client-side middleware should use `redis_pool.with { |conn| ... }` to
|
17
|
-
perform Redis operations and **not** `Sidekiq.redis`.
|
18
|
-
* If you used the capistrano integration, you'll need to pull in the
|
19
|
-
new [capistrano-sidekiq](https://github.com/seuros/capistrano-sidekiq)
|
20
|
-
gem and use it in your deploy.rb.
|
21
|
-
* API changes:
|
22
|
-
- `Sidekiq::Client.registered_workers` replaced by `Sidekiq::Workers.new`
|
23
|
-
- `Sidekiq::Client.registered_queues` replaced by `Sidekiq::Queue.all`
|
24
|
-
- `Sidekiq::Worker#retries_exhausted` replaced by `Sidekiq::Worker.sidekiq_retries_exhausted`
|
25
|
-
- `Sidekiq::Workers#each` has changed significantly with a reworking
|
26
|
-
of Sidekiq's internal process/thread data model.
|
27
|
-
* `sidekiq/api` is no longer automatically required. If your code uses
|
28
|
-
the API, you will need to require it.
|
29
|
-
* Redis-to-Go is no longer transparently activated on Heroku so as to not play
|
30
|
-
favorites with any particular Redis service. You need to set a config option
|
31
|
-
for your app:
|
32
|
-
`heroku config:set REDIS_PROVIDER=REDISTOGO_URL`. You may also use
|
33
|
-
the generic `REDIS_URL`. See
|
34
|
-
[Advanced Options: Setting the Location of your Redis server][1]
|
35
|
-
for details.
|
36
|
-
* Anyone using Airbrake, Honeybadger, Exceptional or ExceptionNotifier
|
37
|
-
will need to update their error gem version to the latest to pull in
|
38
|
-
Sidekiq support. Sidekiq will not provide explicit support for these
|
39
|
-
services so as to not play favorites with any particular error service.
|
40
|
-
* MRI 1.9 is no longer officially supported. Sidekiq's official
|
41
|
-
support policy is to support the current and previous major releases
|
42
|
-
of MRI and Rails. As of February 2014, that's MRI 2.1, MRI 2.0, JRuby 1.7, Rails 4.0
|
43
|
-
and Rails 3.2. I will consider PRs to fix issues found by users for
|
44
|
-
other platforms/versions.
|
45
|
-
|
46
|
-
## Error Service Providers
|
47
|
-
|
48
|
-
If you previously provided a middleware to capture job errors, you
|
49
|
-
should instead provide a global error handler with Sidekiq 3.0. This
|
50
|
-
ensures **any** error within Sidekiq will be logged appropriately, not
|
51
|
-
just during job execution.
|
52
|
-
|
53
|
-
```ruby
|
54
|
-
if Sidekiq::VERSION < '3'
|
55
|
-
# old behavior
|
56
|
-
Sidekiq.configure_server do |config|
|
57
|
-
config.server_middleware do |chain|
|
58
|
-
chain.add MyErrorService::Middleware
|
59
|
-
end
|
60
|
-
end
|
61
|
-
else
|
62
|
-
Sidekiq.configure_server do |config|
|
63
|
-
config.error_handlers << proc {|ex,context| MyErrorService.notify(ex, context) }
|
64
|
-
end
|
65
|
-
end
|
66
|
-
```
|
67
|
-
|
68
|
-
Your error handler must respond to `call(exception, context_hash)`.
|
69
|
-
|
70
|
-
[1]: https://github.com/mperham/sidekiq/wiki/Advanced-Options#via-env-variable
|
data/4.0-Upgrade.md
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
# Welcome to Sidekiq 4.0!
|
2
|
-
|
3
|
-
Sidekiq 4.0 contains a redesigned, more efficient core with less overhead per job.
|
4
|
-
See my blog for [an overview of Sidekiq 4's higher performance](http://www.mikeperham.com/2015/10/14/optimizing-sidekiq/).
|
5
|
-
|
6
|
-
## What's New
|
7
|
-
|
8
|
-
* Sidekiq no longer uses Celluloid. If your application code uses Celluloid,
|
9
|
-
you will need to pull it in yourself.
|
10
|
-
|
11
|
-
* `redis-namespace` has been removed from Sidekiq's gem dependencies. If
|
12
|
-
you want to use namespacing ([and I strongly urge you not to](http://www.mikeperham.com/2015/09/24/storing-data-with-redis/)), you'll need to add the gem to your Gemfile:
|
13
|
-
```ruby
|
14
|
-
gem 'redis-namespace'
|
15
|
-
```
|
16
|
-
|
17
|
-
* **Redis 2.8.0 or greater is required.** Redis 2.8 was released two years
|
18
|
-
ago and contains **many** useful features which Sidekiq couldn't
|
19
|
-
leverage until now. **Redis 3.0.3 or greater is recommended** for large
|
20
|
-
scale use [#2431](https://github.com/mperham/sidekiq/issues/2431).
|
21
|
-
|
22
|
-
* Jobs are now fetched from Redis in parallel, making Sidekiq more
|
23
|
-
resilient to high network latency. This means that Sidekiq requires
|
24
|
-
more Redis connections per process. You must have a minimum of
|
25
|
-
`concurrency + 2` connections in your pool or Sidekiq will exit.
|
26
|
-
When in doubt, let Sidekiq size the connection pool for you.
|
27
|
-
|
28
|
-
* Worker data is no longer updated in real-time but rather upon every
|
29
|
-
heartbeat. Don't expect the `Sidekiq::Workers` API to be millisecond-precise.
|
30
|
-
|
31
|
-
* There's a new testing API based off the `Sidekiq::Queues` namespace. All
|
32
|
-
assertions made against the Worker class still work as expected.
|
33
|
-
```ruby
|
34
|
-
assert_equal 0, Sidekiq::Queues["default"].size
|
35
|
-
HardWorker.perform_async("log")
|
36
|
-
assert_equal 1, Sidekiq::Queues["default"].size
|
37
|
-
assert_equal "log", Sidekiq::Queues["default"].first['args'][0]
|
38
|
-
Sidekiq::Queues.clear_all
|
39
|
-
```
|
40
|
-
|
41
|
-
## Upgrade
|
42
|
-
|
43
|
-
First, make sure you are using Redis 2.8 or greater. Next:
|
44
|
-
|
45
|
-
* Upgrade to the latest Sidekiq 3.x.
|
46
|
-
```ruby
|
47
|
-
gem 'sidekiq', '< 4'
|
48
|
-
```
|
49
|
-
* Fix any deprecation warnings you see.
|
50
|
-
* Upgrade to 4.x.
|
51
|
-
```ruby
|
52
|
-
gem 'sidekiq', '< 5'
|
53
|
-
```
|