sidekiq 6.5.10 → 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.
- checksums.yaml +4 -4
- data/Changes.md +568 -18
- data/README.md +66 -38
- data/bin/kiq +17 -0
- data/bin/lint-herb +13 -0
- data/bin/multi_queue_bench +271 -0
- data/bin/sidekiq +3 -8
- data/bin/sidekiqload +215 -118
- data/bin/sidekiqmon +3 -0
- data/bin/webload +69 -0
- data/lib/active_job/queue_adapters/sidekiq_adapter.rb +124 -0
- data/lib/generators/sidekiq/job_generator.rb +17 -3
- data/lib/generators/sidekiq/templates/job.rb.erb +1 -1
- data/lib/sidekiq/api.rb +526 -218
- data/lib/sidekiq/capsule.rb +135 -0
- data/lib/sidekiq/cli.rb +88 -96
- data/lib/sidekiq/client.rb +114 -47
- data/lib/sidekiq/component.rb +71 -4
- data/lib/sidekiq/config.rb +316 -0
- data/lib/sidekiq/deploy.rb +64 -0
- data/lib/sidekiq/embedded.rb +64 -0
- data/lib/sidekiq/fetch.rb +12 -14
- data/lib/sidekiq/iterable_job.rb +56 -0
- data/lib/sidekiq/job/interrupt_handler.rb +24 -0
- data/lib/sidekiq/job/iterable/active_record_enumerator.rb +53 -0
- data/lib/sidekiq/job/iterable/csv_enumerator.rb +47 -0
- data/lib/sidekiq/job/iterable/enumerators.rb +135 -0
- data/lib/sidekiq/job/iterable.rb +322 -0
- data/lib/sidekiq/job.rb +397 -10
- data/lib/sidekiq/job_logger.rb +14 -11
- data/lib/sidekiq/job_retry.rb +78 -28
- data/lib/sidekiq/job_util.rb +58 -16
- data/lib/sidekiq/launcher.rb +86 -70
- data/lib/sidekiq/loader.rb +57 -0
- data/lib/sidekiq/logger.rb +25 -94
- data/lib/sidekiq/manager.rb +11 -13
- data/lib/sidekiq/metrics/query.rb +84 -48
- data/lib/sidekiq/metrics/shared.rb +29 -14
- data/lib/sidekiq/metrics/tracking.rb +49 -30
- data/lib/sidekiq/middleware/chain.rb +19 -18
- data/lib/sidekiq/middleware/current_attributes.rb +78 -21
- data/lib/sidekiq/middleware/i18n.rb +2 -0
- data/lib/sidekiq/middleware/modules.rb +2 -0
- data/lib/sidekiq/monitor.rb +15 -5
- data/lib/sidekiq/paginator.rb +26 -4
- data/lib/sidekiq/processor.rb +78 -65
- data/lib/sidekiq/profiler.rb +73 -0
- data/lib/sidekiq/rails.rb +45 -60
- data/lib/sidekiq/redis_client_adapter.rb +35 -72
- data/lib/sidekiq/redis_connection.rb +54 -114
- data/lib/sidekiq/ring_buffer.rb +3 -0
- data/lib/sidekiq/scheduled.rb +28 -30
- data/lib/sidekiq/systemd.rb +2 -0
- data/lib/sidekiq/test_api.rb +331 -0
- data/lib/sidekiq/testing/inline.rb +2 -30
- data/lib/sidekiq/testing.rb +2 -342
- data/lib/sidekiq/transaction_aware_client.rb +23 -9
- data/lib/sidekiq/tui/controls.rb +53 -0
- data/lib/sidekiq/tui/filtering.rb +53 -0
- data/lib/sidekiq/tui/tabs/base_tab.rb +230 -0
- data/lib/sidekiq/tui/tabs/busy.rb +104 -0
- data/lib/sidekiq/tui/tabs/dead.rb +14 -0
- data/lib/sidekiq/tui/tabs/home.rb +115 -0
- data/lib/sidekiq/tui/tabs/metrics.rb +114 -0
- data/lib/sidekiq/tui/tabs/queues.rb +83 -0
- data/lib/sidekiq/tui/tabs/retries.rb +14 -0
- data/lib/sidekiq/tui/tabs/scheduled.rb +14 -0
- data/lib/sidekiq/tui/tabs/set_tab.rb +91 -0
- data/lib/sidekiq/tui/tabs.rb +15 -0
- data/lib/sidekiq/tui.rb +390 -0
- data/lib/sidekiq/version.rb +6 -1
- data/lib/sidekiq/web/action.rb +149 -64
- data/lib/sidekiq/web/application.rb +379 -281
- data/lib/sidekiq/web/config.rb +117 -0
- data/lib/sidekiq/web/helpers.rb +190 -71
- data/lib/sidekiq/web/router.rb +62 -75
- data/lib/sidekiq/web.rb +68 -101
- data/lib/sidekiq/worker_compatibility_alias.rb +13 -0
- data/lib/sidekiq.rb +85 -269
- data/sidekiq.gemspec +15 -11
- data/web/assets/images/logo.png +0 -0
- data/web/assets/images/status.png +0 -0
- data/web/assets/javascripts/application.js +84 -24
- data/web/assets/javascripts/base-charts.js +120 -0
- data/web/assets/javascripts/chartjs-adapter-date-fns.min.js +7 -0
- data/web/assets/javascripts/dashboard-charts.js +194 -0
- data/web/assets/javascripts/dashboard.js +18 -234
- data/web/assets/javascripts/metrics.js +138 -120
- data/web/assets/stylesheets/style.css +776 -0
- data/web/locales/ar.yml +72 -70
- data/web/locales/cs.yml +64 -62
- data/web/locales/da.yml +62 -53
- data/web/locales/de.yml +67 -65
- data/web/locales/el.yml +4 -7
- data/web/locales/en.yml +89 -71
- data/web/locales/es.yml +91 -68
- data/web/locales/fa.yml +67 -65
- data/web/locales/fr.yml +82 -67
- data/web/locales/gd.yml +110 -0
- data/web/locales/he.yml +67 -64
- data/web/locales/hi.yml +95 -59
- data/web/locales/it.yml +94 -54
- data/web/locales/ja.yml +69 -70
- data/web/locales/ko.yml +54 -52
- data/web/locales/lt.yml +68 -66
- data/web/locales/nb.yml +63 -61
- data/web/locales/nl.yml +54 -52
- data/web/locales/pl.yml +47 -45
- data/web/locales/{pt-br.yml → pt-BR.yml} +81 -70
- data/web/locales/pt.yml +53 -51
- data/web/locales/ru.yml +69 -66
- data/web/locales/sv.yml +55 -53
- data/web/locales/ta.yml +100 -64
- data/web/locales/tr.yml +102 -0
- data/web/locales/uk.yml +87 -61
- data/web/locales/ur.yml +66 -64
- data/web/locales/vi.yml +69 -67
- data/web/locales/zh-CN.yml +107 -0
- data/web/locales/{zh-tw.yml → zh-TW.yml} +13 -3
- data/web/views/_footer.html.erb +32 -0
- data/web/views/_job_info.html.erb +115 -0
- data/web/views/_metrics_period_select.html.erb +15 -0
- data/web/views/_nav.html.erb +45 -0
- data/web/views/_paging.html.erb +26 -0
- data/web/views/_poll_link.html.erb +4 -0
- data/web/views/_summary.html.erb +40 -0
- data/web/views/busy.html.erb +155 -0
- data/web/views/dashboard.html.erb +104 -0
- data/web/views/dead.html.erb +38 -0
- data/web/views/filtering.html.erb +6 -0
- data/web/views/layout.html.erb +26 -0
- data/web/views/metrics.html.erb +85 -0
- data/web/views/metrics_for_job.html.erb +58 -0
- data/web/views/morgue.html.erb +69 -0
- data/web/views/profiles.html.erb +43 -0
- data/web/views/queue.html.erb +57 -0
- data/web/views/queues.html.erb +46 -0
- data/web/views/retries.html.erb +77 -0
- data/web/views/retry.html.erb +39 -0
- data/web/views/scheduled.html.erb +64 -0
- data/web/views/{scheduled_job_info.erb → scheduled_job_info.html.erb} +3 -3
- metadata +113 -70
- data/lib/sidekiq/delay.rb +0 -43
- data/lib/sidekiq/extensions/action_mailer.rb +0 -48
- data/lib/sidekiq/extensions/active_record.rb +0 -43
- data/lib/sidekiq/extensions/class_methods.rb +0 -43
- data/lib/sidekiq/extensions/generic_proxy.rb +0 -33
- data/lib/sidekiq/metrics/deploy.rb +0 -47
- data/lib/sidekiq/web/csrf_protection.rb +0 -180
- data/lib/sidekiq/worker.rb +0 -370
- data/web/assets/javascripts/graph.js +0 -16
- data/web/assets/stylesheets/application-dark.css +0 -143
- data/web/assets/stylesheets/application-rtl.css +0 -242
- data/web/assets/stylesheets/application.css +0 -999
- data/web/assets/stylesheets/bootstrap-rtl.min.css +0 -9
- data/web/assets/stylesheets/bootstrap.css +0 -5
- data/web/locales/zh-cn.yml +0 -93
- data/web/views/_footer.erb +0 -20
- data/web/views/_job_info.erb +0 -89
- data/web/views/_nav.erb +0 -52
- data/web/views/_paging.erb +0 -23
- data/web/views/_poll_link.erb +0 -4
- data/web/views/_status.erb +0 -4
- data/web/views/_summary.erb +0 -40
- data/web/views/busy.erb +0 -137
- data/web/views/dashboard.erb +0 -84
- data/web/views/dead.erb +0 -34
- data/web/views/layout.erb +0 -42
- data/web/views/metrics.erb +0 -69
- data/web/views/metrics_for_job.erb +0 -87
- data/web/views/morgue.erb +0 -78
- data/web/views/queue.erb +0 -59
- data/web/views/queues.erb +0 -38
- data/web/views/retries.erb +0 -83
- data/web/views/retry.erb +0 -34
- data/web/views/scheduled.erb +0 -57
- /data/{LICENSE → LICENSE.txt} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e02b7ba4c390eb2a743bc62a8938cedd64ee940a6e128b2c517d9c3f27649543
|
|
4
|
+
data.tar.gz: 86b1e8925322fb00b3d443c6aa8762d7d06f9a564276bf1b210c0415c8d571b4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 63fd4147cf1a9ed566f47266a0c88eb966756285f4404714f2487783a1b754604ab00d5d9b4514002a116598f6005776c6db305c8d66192ec5c8e9b84af71595
|
|
7
|
+
data.tar.gz: a904f9f6963083f76f5645990f068f31b5f3a1a13376d73744b693d6f2e0e2d551be420d70b9c6f97d3ae3ae6691140d21af6357e208e275228ba0061e92df14
|
data/Changes.md
CHANGED
|
@@ -1,12 +1,563 @@
|
|
|
1
1
|
# Sidekiq Changes
|
|
2
2
|
|
|
3
|
-
[Sidekiq Changes](https://github.com/
|
|
3
|
+
[Sidekiq Changes](https://github.com/sidekiq/sidekiq/blob/main/Changes.md) | [Sidekiq Pro Changes](https://github.com/sidekiq/sidekiq/blob/main/Pro-Changes.md) | [Sidekiq Enterprise Changes](https://github.com/sidekiq/sidekiq/blob/main/Ent-Changes.md)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
8.1.7
|
|
6
6
|
----------
|
|
7
7
|
|
|
8
|
-
-
|
|
9
|
-
-
|
|
8
|
+
- Forward compatibililty with Active Job 8.1 [#7019]
|
|
9
|
+
- Many minor fixes and test improvements [hammadxcm]
|
|
10
|
+
|
|
11
|
+
8.1.6
|
|
12
|
+
----------
|
|
13
|
+
|
|
14
|
+
- Fix reported thread/memory leak when jobs fail [#7006]
|
|
15
|
+
- Users can limit data displayed on Busy page with the `only` parameter `/busy?only=(jobs|processes)` [#6992]
|
|
16
|
+
- Replace Rack::Utils usage with standard library APIs
|
|
17
|
+
- Several minor fixes from AI scanners.
|
|
18
|
+
|
|
19
|
+
8.1.5
|
|
20
|
+
----------
|
|
21
|
+
|
|
22
|
+
- Fix sub-second precision when computing the `retry_for` deadline [#7003]
|
|
23
|
+
- Identify Sidekiq connnections in Redis with `CLIENT SETINFO` [#6986]
|
|
24
|
+
- Fix edge case where Web UI could show an empty Batch set [#6987]
|
|
25
|
+
|
|
26
|
+
8.1.4
|
|
27
|
+
----------
|
|
28
|
+
|
|
29
|
+
- The TTIN signal is undeprecated as the INFO signal is not supported on Linux
|
|
30
|
+
- Show iteration job state on Busy page [#6978]
|
|
31
|
+
|
|
32
|
+
8.1.3
|
|
33
|
+
----------
|
|
34
|
+
|
|
35
|
+
- Fix edge case leading to duplicate, concurrent execution [#6379]
|
|
36
|
+
If 2 Capsules process jobs from the same queue, long-running
|
|
37
|
+
jobs could run in parallel during process shutdown.
|
|
38
|
+
- [SECURITY] Remove as much YAML usage as possible. [#6950]
|
|
39
|
+
Localization files in `web/locales` are now manually parsed.
|
|
40
|
+
Sidekiq::CLI will now only require YAML if you use a `-C` .yml file.
|
|
41
|
+
|
|
42
|
+
8.1.2
|
|
43
|
+
----------
|
|
44
|
+
|
|
45
|
+
- Initial release for `kiq`, Sidekiq's official terminal UI:
|
|
46
|
+
```
|
|
47
|
+
bundle exec kiq
|
|
48
|
+
```
|
|
49
|
+
Use REDIS_URL or REDIS_PROVIDER to point `kiq` to Redis.
|
|
50
|
+
- Mutation during iteration in `SortedSet#each` caused it to miss half of the jobs [#6936]
|
|
51
|
+
- Fix edge case resulting in nil crash on /busy page [#6954]
|
|
52
|
+
|
|
53
|
+
8.1.1
|
|
54
|
+
----------
|
|
55
|
+
|
|
56
|
+
- **DEPRECATION** `require 'sidekiq/testing'` and
|
|
57
|
+
`require 'sidekiq/testing/inline'`.
|
|
58
|
+
Add new `Sidekiq.testing!(mode)` API [#6931]
|
|
59
|
+
Requiring code should not enable process-wide changes.
|
|
60
|
+
```ruby
|
|
61
|
+
# Old, implicit
|
|
62
|
+
require "sidekiq/testing"
|
|
63
|
+
require "sidekiq/testing/inline"
|
|
64
|
+
# New, more explicit
|
|
65
|
+
require "sidekiq"
|
|
66
|
+
Sidekiq.testing!(:fake)
|
|
67
|
+
Sidekiq.testing!(:inline)
|
|
68
|
+
```
|
|
69
|
+
- Fix race condition with Stop button in UI [#6935]
|
|
70
|
+
- Fix javascript error handler [#6893]
|
|
71
|
+
|
|
72
|
+
8.1.0
|
|
73
|
+
----------
|
|
74
|
+
|
|
75
|
+
- `retry_for` and `retry` are now mutually exclusive [#6878, Saidbek]
|
|
76
|
+
- `perform_inline` now enforces `strict_args!` [#6718, Saidbek]
|
|
77
|
+
- Integrate Herb linting for ERB templates [#6760, Saidbek]
|
|
78
|
+
- Remove CSRF code, use `Sec-Fetch-Site` header [#6874, deve1212]
|
|
79
|
+
- Allow custom Web UI `assets_path` for CDN purposes [#6865, stanhu]
|
|
80
|
+
- Upgrade to connection_pool 3.0
|
|
81
|
+
- Allow idle connection reaping after N seconds.
|
|
82
|
+
You can activate this **beta** feature like below.
|
|
83
|
+
Feedback requested: is this feature stable and useful for you in production?
|
|
84
|
+
This feature may or may not be enabled by default in Sidekiq 9.0.
|
|
85
|
+
```ruby
|
|
86
|
+
Sidekiq.configure_server do |cfg|
|
|
87
|
+
cfg.reap_idle_redis_connections(60)
|
|
88
|
+
end
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
8.0.10
|
|
92
|
+
----------
|
|
93
|
+
|
|
94
|
+
- Add confirm dialog for Delete All buttons in Web UI [#6853]
|
|
95
|
+
- Adjust scheduler to run closer to poll average [#6866]
|
|
96
|
+
- Forward compatibility changes for connection_pool 3.0.0
|
|
97
|
+
- Backwards compatibility fix for <8.0.9 process data in Redis [#6870]
|
|
98
|
+
- Backtrace dump can now be triggered with the INFO signal, since Puma uses the
|
|
99
|
+
same signal [#6857]
|
|
100
|
+
|
|
101
|
+
8.0.9
|
|
102
|
+
----------
|
|
103
|
+
|
|
104
|
+
- Implement idle Redis connection reaping, will be activated in 8.1 [#6663]
|
|
105
|
+
- Updated `Sidekiq::Process` API to provide capsule data. The `queues` and `weights`
|
|
106
|
+
data will be removed from Redis in Sidekiq 8.1, as this data can now be found in the
|
|
107
|
+
`capsules` element. [#6295]
|
|
108
|
+
- Restore bulk action buttons on Scheduled, Retry and Dead tabs [#6833, deve1212]
|
|
109
|
+
- Support logging additional job attributes [#6846, bschrag620]
|
|
110
|
+
- Fix display of long job args [#6836]
|
|
111
|
+
- Create development lifecycle (`docs/sdlc.md`) and security (`docs/SECURITY.md`) policy
|
|
112
|
+
documentation for Sidekiq's current workflows
|
|
113
|
+
|
|
114
|
+
8.0.8
|
|
115
|
+
----------
|
|
116
|
+
|
|
117
|
+
- Allow an optional global iteration max runtime. After executing for this length of time,
|
|
118
|
+
Sidekiq will re-queue the job to continue execution at a later time [#6819, fatkodima]
|
|
119
|
+
```ruby
|
|
120
|
+
Sidekiq.configure_server do |cfg|
|
|
121
|
+
cfg[:max_iteration_runtime] = 600 # ten minutes
|
|
122
|
+
end
|
|
123
|
+
```
|
|
124
|
+
- Add `discarded_at` attribute when discarding a job so death handlers can distinguish between
|
|
125
|
+
a job which was killed and one that was discarded. [#6820, gstokkink]
|
|
126
|
+
- `perform_bulk` now accepts an `:at` array of times to schedule each job at the corresponding time.
|
|
127
|
+
`perform_bulk(args: [[1], [2]], at: [Time.now, Time.now + 1])` [#6790, fatkodima]
|
|
128
|
+
- `perform_bulk` now accepts a `:spread_interval` value to schedule jobs over
|
|
129
|
+
the next N seconds. `perform_bulk(..., spread_interval: 60)` [#6792, fatkodima]
|
|
130
|
+
- Fix unintended display of flash messages in the Web UI due to session key collision
|
|
131
|
+
- Add support for lazy load hooks [#6825]
|
|
132
|
+
|
|
133
|
+
8.0.7
|
|
134
|
+
----------
|
|
135
|
+
|
|
136
|
+
- The `:discard` option for `sidekiq_retries_exhausted` and `sidekiq_retry_in`
|
|
137
|
+
now calls death handlers, otherwise it could break other Sidekiq
|
|
138
|
+
functionality. [#6741]
|
|
139
|
+
- Provide a Plain log formatter which does not colorize output [#6778]
|
|
140
|
+
- Job iteration now exposes `current_object` for easy access within the `around_iteration` callback [#6774]
|
|
141
|
+
- Fix JS race condition which could skip confirmation dialogs when Live Polling [#6768]
|
|
142
|
+
- Fix edge case which could lose CurrentAttributes [#6767]
|
|
143
|
+
- Update UK locale [#6776]
|
|
144
|
+
|
|
145
|
+
8.0.6
|
|
146
|
+
----------
|
|
147
|
+
|
|
148
|
+
- Adjust transactional client to use ActiveRecord 7.2's support for
|
|
149
|
+
`after_all_transactions_commit` when available. [#6765, rewritten]
|
|
150
|
+
- Fix Rails 7.0 and 7.1 compatibility [#6746, mlarraz]
|
|
151
|
+
- Flush metrics at `:exit` [#6764]
|
|
152
|
+
|
|
153
|
+
8.0.5
|
|
154
|
+
----------
|
|
155
|
+
|
|
156
|
+
- Add `stopping?` method to AJ adapter for compatibility with the new AJ::Continuations feature [#6732]
|
|
157
|
+
- Further improvements to Rails boot compatibility [#6710]
|
|
158
|
+
- Add ability to disable CSRF middleware. SameSite cookies prevent
|
|
159
|
+
CSRF in a cleaner manner and are default in most browsers now.
|
|
160
|
+
CSRF code will be removed in Sidekiq 9.0. [#6739]
|
|
161
|
+
|
|
162
|
+
8.0.4
|
|
163
|
+
----------
|
|
164
|
+
|
|
165
|
+
- Adjust Rails integration for various edge cases [6713]
|
|
166
|
+
- Flush job iteration state when an error is raised [#6704]
|
|
167
|
+
- Update Accept-Language parsing in Web UI [#6721]
|
|
168
|
+
- Remove fixed-width in Web UI [#6686]
|
|
169
|
+
- Adjust CSRF middleware ordering [#6688]
|
|
170
|
+
- Support proxies when POSTing profiles to profiler.firefox.com [#6687]
|
|
171
|
+
- Dont swallow NoMethodErrors in CurrentAttributes [#6685]
|
|
172
|
+
|
|
173
|
+
8.0.3
|
|
174
|
+
----------
|
|
175
|
+
|
|
176
|
+
- Configure Vernier output directory [#6674]
|
|
177
|
+
- Rework Rails integration [#6669]
|
|
178
|
+
- Implement flash messages for the Web UI [#6675]
|
|
179
|
+
|
|
180
|
+
8.0.2
|
|
181
|
+
----------
|
|
182
|
+
|
|
183
|
+
- Add `on(:exit)` event to run code right before the Sidekiq process exits [#6637]
|
|
184
|
+
- Metrics page crashes with Rack 3.1+ [#6646]
|
|
185
|
+
|
|
186
|
+
8.0.1
|
|
187
|
+
----------
|
|
188
|
+
|
|
189
|
+
- Relax Redis requirement to 7.0 for compatibility with AWS and Ubuntu 24.04 LTS. [#6630]
|
|
190
|
+
|
|
191
|
+
8.0.0
|
|
192
|
+
----------
|
|
193
|
+
|
|
194
|
+
- **WARNING** The underlying class name for Active Jobs has changed from `ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper` to `Sidekiq::ActiveJob::Wrapper`.
|
|
195
|
+
The old name will still work in 8.x.
|
|
196
|
+
- **WARNING** The `created_at`, `enqueued_at`, `failed_at` and `retried_at` attributes are now stored as epoch milliseconds, rather than epoch floats.
|
|
197
|
+
This is meant to avoid precision issues with JSON and JavaScript's 53-bit Floats.
|
|
198
|
+
Example: `"created_at" => 1234567890.123456` -> `"created_at" => 1234567890123`.
|
|
199
|
+
- **NEW FEATURE** Job Profiling is now supported with [Vernier](https://vernier.prof)
|
|
200
|
+
which makes it really easy to performance tune your slow jobs.
|
|
201
|
+
The Web UI contains a new **Profiles** tab to view any collected profile data.
|
|
202
|
+
Please read the new [Profiling](https://github.com/sidekiq/sidekiq/wiki/Profiling) wiki page for details.
|
|
203
|
+
- **NEW FEATURE** Job Metrics now store up to 72 hours of data and the Web UI allows display of 24/48/72 hours. [#6614]
|
|
204
|
+
- CurrentAttribute support now uses `ActiveJob::Arguments` to serialize the context object, supporting Symbols and GlobalID.
|
|
205
|
+
The change should be backwards compatible. [#6510]
|
|
206
|
+
- Freshen up `Sidekiq::Web` to simplify the code and improve security [#6532]
|
|
207
|
+
The CSS has been rewritten from scratch to remove the Bootstrap framework.
|
|
208
|
+
- Add `on_cancel` callback for iterable jobs [#6607]
|
|
209
|
+
- Add `cursor` reader to get the current cursor inside iterable jobs [#6606]
|
|
210
|
+
- Default error logging has been modified to use Ruby's `Exception#detailed_message` and `#full_message` APIs.
|
|
211
|
+
- CI now runs against Redis, Dragonfly and Valkey.
|
|
212
|
+
- Job tags now allow custom CSS display [#6595]
|
|
213
|
+
- The Web UI's language picker now shows options in the native language
|
|
214
|
+
- Remove global variable usage within the codebase
|
|
215
|
+
- Colorize and adjust logging for easier reading
|
|
216
|
+
- Adjust Sidekiq's default thread priority to -1 for a 50ms timeslice.
|
|
217
|
+
This can help avoid TimeoutErrors when Sidekiq is overloaded. [#6543]
|
|
218
|
+
- Use `Logger#with_level`, remove Sidekiq's custom impl
|
|
219
|
+
- Remove `base64` gem dependency
|
|
220
|
+
- Support: (Dragonfly 1.27+, Valkey 7.2+, Redis 7.2+), Ruby 3.2+, Rails 7.0+
|
|
221
|
+
|
|
222
|
+
7.3.10
|
|
223
|
+
----------
|
|
224
|
+
|
|
225
|
+
- Deprecate Redis :password as a String to avoid log disclosure. [#6625]
|
|
226
|
+
Use a Proc instead: `config.redis = { password: ->(username) { "password" } }`
|
|
227
|
+
|
|
228
|
+
7.3.9
|
|
229
|
+
----------
|
|
230
|
+
|
|
231
|
+
- Only require activejob if necessary [#6584]
|
|
232
|
+
You might get `uninitialized constant Sidekiq::ActiveJob` if you
|
|
233
|
+
`require 'sidekiq'` before `require 'rails'`.
|
|
234
|
+
- Fix iterable job cancellation [#6589]
|
|
235
|
+
- Web UI accessibility improvements [#6604]
|
|
236
|
+
|
|
237
|
+
7.3.8
|
|
238
|
+
----------
|
|
239
|
+
|
|
240
|
+
- Fix dead tag links [#6554]
|
|
241
|
+
- Massive Web UI performance improvement, some pages up to 15x faster [#6555]
|
|
242
|
+
|
|
243
|
+
7.3.7
|
|
244
|
+
----------
|
|
245
|
+
|
|
246
|
+
- Backport `Sidekiq::Web.configure` for compatibility with 8.0 [#6532]
|
|
247
|
+
- Backport `url_params(key)` and `route_params(key)` for compatibility with 8.0 [#6532]
|
|
248
|
+
- Various fixes for UI filtering [#6508]
|
|
249
|
+
- Tune `inspect` for internal S::Components to keep size managable [#6553]
|
|
250
|
+
|
|
251
|
+
7.3.6
|
|
252
|
+
----------
|
|
253
|
+
|
|
254
|
+
- Forward compatibility fixes for Ruby 3.4
|
|
255
|
+
- Filtering in the Web UI now works via GET so you can bookmark a filtered view. [#6497]
|
|
256
|
+
|
|
257
|
+
7.3.5
|
|
258
|
+
----------
|
|
259
|
+
|
|
260
|
+
- Reimplement `retry_all` and `kill_all` API methods to use ZPOPMIN,
|
|
261
|
+
approximately 30-60% faster. [#6481]
|
|
262
|
+
- Add preload testing binary at `examples/testing/sidekiq_boot` to verify your Rails app boots correctly with Sidekiq Enterprise's app preloading.
|
|
263
|
+
- Fix circular require with ActiveJob adapter [#6477]
|
|
264
|
+
- Fix potential race condition leading to incorrect serialized values for CurrentAttributes [#6475]
|
|
265
|
+
- Restore missing elapsed time when default job logging is disabled
|
|
266
|
+
|
|
267
|
+
7.3.4
|
|
268
|
+
----------
|
|
269
|
+
|
|
270
|
+
- Fix FrozenError when starting Sidekiq [#6470]
|
|
271
|
+
|
|
272
|
+
7.3.3
|
|
273
|
+
----------
|
|
274
|
+
|
|
275
|
+
- Freeze global configuration once boot is complete, to avoid configuration race conditions [#6466, #6465]
|
|
276
|
+
- Sidekiq now warns if a job iteration takes longer than the `-t` timeout setting (defaults to 25 seconds)
|
|
277
|
+
- Iteration callbacks now have easy access to job arguments via the `arguments` method:
|
|
278
|
+
```ruby
|
|
279
|
+
def on_stop
|
|
280
|
+
p arguments # => `[123, "string", {"key" => "value"}]`
|
|
281
|
+
id, str, hash = arguments
|
|
282
|
+
end
|
|
283
|
+
```
|
|
284
|
+
- Iterable jobs can be cancelled via `Sidekiq::Client#cancel!`:
|
|
285
|
+
```ruby
|
|
286
|
+
c = Sidekiq::Client.new
|
|
287
|
+
jid = c.push("class" => SomeJob, "args" => [123])
|
|
288
|
+
c.cancel!(jid) # => true
|
|
289
|
+
```
|
|
290
|
+
- Take over support for ActiveJob's `:sidekiq` adapter [#6430, fatkodima]
|
|
291
|
+
- Ensure CurrentAttributes are in scope when creating batch callbacks [#6455]
|
|
292
|
+
- Add `Sidekiq.gem_version` API.
|
|
293
|
+
- Update Ukranian translations
|
|
294
|
+
|
|
295
|
+
7.3.2
|
|
296
|
+
----------
|
|
297
|
+
|
|
298
|
+
- Adjust ActiveRecord batch iteration to restart an interrupted batch from the beginning.
|
|
299
|
+
Each batch should be processed as a single transaction in order to be idempotent. [#6405]
|
|
300
|
+
- Fix typo in Sidekiq::DeadSet#kill [#6397]
|
|
301
|
+
- Fix CSS issue with bottom bar in Web UI [#6414]
|
|
302
|
+
|
|
303
|
+
7.3.1
|
|
304
|
+
----------
|
|
305
|
+
|
|
306
|
+
- Don't count job interruptions as failures in metrics [#6386]
|
|
307
|
+
- Add frozen string literal to a number of .rb files.
|
|
308
|
+
- Fix frozen string error with style_tag and script_tag [#6371]
|
|
309
|
+
- Fix an error on Ruby 2.7 because of usage of `Hash#except` [#6376]
|
|
310
|
+
|
|
311
|
+
7.3.0
|
|
312
|
+
----------
|
|
313
|
+
|
|
314
|
+
- **NEW FEATURE** Add `Sidekiq::IterableJob`, iteration support for long-running jobs. [#6286, fatkodima]
|
|
315
|
+
Iterable jobs are interruptible and can restart quickly if
|
|
316
|
+
running during a deploy. You must ensure that `each_iteration`
|
|
317
|
+
doesn't take more than Sidekiq's `-t` timeout (default: 25 seconds). Iterable jobs must not implement `perform`.
|
|
318
|
+
```ruby
|
|
319
|
+
class ProcessArrayJob
|
|
320
|
+
include Sidekiq::IterableJob
|
|
321
|
+
def build_enumerator(*args, **kwargs)
|
|
322
|
+
array_enumerator(args, **kwargs)
|
|
323
|
+
end
|
|
324
|
+
def each_iteration(arg)
|
|
325
|
+
puts arg
|
|
326
|
+
end
|
|
327
|
+
end
|
|
328
|
+
ProcessArrayJob.perform_async(1, 2, 3)
|
|
329
|
+
```
|
|
330
|
+
See the [Iteration](//github.com/sidekiq/sidekiq/wiki/Iteration) wiki page and the RDoc in `Sidekiq::IterableJob`.
|
|
331
|
+
This feature should be considered BETA until the next minor release.
|
|
332
|
+
- **SECURITY** The Web UI no longer allows extensions to use `<script>`.
|
|
333
|
+
Adjust CSP to disallow inline scripts within the Web UI. Please see
|
|
334
|
+
`examples/webui-ext` for how to register Web UI extensions and use
|
|
335
|
+
dynamic CSS and JS. This will make Sidekiq immune to XSS attacks. [#6270]
|
|
336
|
+
- Add config option, `:skip_default_job_logging` to disable Sidekiq's default
|
|
337
|
+
start/finish job logging. [#6200]
|
|
338
|
+
- Allow `Sidekiq::Limiter.redis` to use Redis Cluster [#6288]
|
|
339
|
+
- Retain CurrentAttributeѕ after inline execution [#6307]
|
|
340
|
+
- Ignore non-existent CurrentAttributes attributes when restoring [#6341]
|
|
341
|
+
- Raise default Redis {read,write,connect} timeouts from 1 to 3 seconds
|
|
342
|
+
to minimize ReadTimeoutErrors [#6162]
|
|
343
|
+
- Add `logger` as a dependency since it will become bundled in Ruby 3.5 [#6320]
|
|
344
|
+
- Ignore unsupported locales in the Web UI [#6313]
|
|
345
|
+
|
|
346
|
+
7.2.4
|
|
347
|
+
----------
|
|
348
|
+
|
|
349
|
+
- Fix XSS in metrics filtering introduced in 7.2.0, CVE-2024-32887
|
|
350
|
+
Thanks to @UmerAdeemCheema for the security report.
|
|
351
|
+
|
|
352
|
+
7.2.3
|
|
353
|
+
----------
|
|
354
|
+
|
|
355
|
+
- [Support Dragonfly.io](https://www.mikeperham.com/2024/02/01/supporting-dragonfly/) as an alternative Redis implementation
|
|
356
|
+
- Fix error unpacking some compressed error backtraces [#6241]
|
|
357
|
+
- Fix potential heartbeat data leak [#6227]
|
|
358
|
+
- Add ability to find a currently running work by jid [#6212, fatkodima]
|
|
359
|
+
|
|
360
|
+
7.2.2
|
|
361
|
+
----------
|
|
362
|
+
|
|
363
|
+
- Add `Process.warmup` call in Ruby 3.3+
|
|
364
|
+
- Batch jobs now skip transactional push [#6160]
|
|
365
|
+
|
|
366
|
+
7.2.1
|
|
367
|
+
----------
|
|
368
|
+
|
|
369
|
+
- Add `Sidekiq::Work` type which replaces the raw Hash as the third parameter in
|
|
370
|
+
`Sidekiq::WorkSet#each { |pid, tid, hash| ... }` [#6145]
|
|
371
|
+
- **DEPRECATED**: direct access to the attributes within the `hash` block parameter above.
|
|
372
|
+
The `Sidekiq::Work` instance contains accessor methods to get at the same data, e.g.
|
|
373
|
+
```ruby
|
|
374
|
+
work["queue"] # Old
|
|
375
|
+
work.queue # New
|
|
376
|
+
```
|
|
377
|
+
- Fix Ruby 3.3 warnings around `base64` gem [#6151, earlopain]
|
|
378
|
+
|
|
379
|
+
7.2.0
|
|
380
|
+
----------
|
|
381
|
+
|
|
382
|
+
- `sidekiq_retries_exhausted` can return `:discard` to avoid the deadset
|
|
383
|
+
and all death handlers [#6091]
|
|
384
|
+
- Metrics filtering by job class in Web UI [#5974]
|
|
385
|
+
- Better readability and formatting for numbers within the Web UI [#6080]
|
|
386
|
+
- Add explicit error if user code tries to nest test modes [#6078]
|
|
387
|
+
```ruby
|
|
388
|
+
Sidekiq::Testing.inline! # global setting
|
|
389
|
+
Sidekiq::Testing.fake! do # override within block
|
|
390
|
+
# ok
|
|
391
|
+
Sidekiq::Testing.inline! do # can't override the override
|
|
392
|
+
# not ok, nested
|
|
393
|
+
end
|
|
394
|
+
end
|
|
395
|
+
```
|
|
396
|
+
- **SECURITY** Forbid inline JavaScript execution in Web UI [#6074]
|
|
397
|
+
- Adjust redis-client adapter to avoid `method_missing` [#6083]
|
|
398
|
+
This can result in app code breaking if your app's Redis API usage was
|
|
399
|
+
depending on Sidekiq's adapter to correct invalid redis-client API usage.
|
|
400
|
+
One example:
|
|
401
|
+
```ruby
|
|
402
|
+
# bad, not redis-client native
|
|
403
|
+
# Unsupported command argument type: TrueClass (TypeError)
|
|
404
|
+
Sidekiq.redis { |c| c.set("key", "value", nx: true, ex: 15) }
|
|
405
|
+
# good
|
|
406
|
+
Sidekiq.redis { |c| c.set("key", "value", "nx", "ex", 15) }
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
7.1.6
|
|
410
|
+
----------
|
|
411
|
+
|
|
412
|
+
- The block forms of testing modes (inline, fake) are now thread-safe so you can have
|
|
413
|
+
a multithreaded test suite which uses different modes for different tests. [#6069]
|
|
414
|
+
- Fix breakage with non-Proc error handlers [#6065]
|
|
415
|
+
|
|
416
|
+
7.1.5
|
|
417
|
+
----------
|
|
418
|
+
|
|
419
|
+
- **FEATURE**: Job filtering within the Web UI. This feature has been open
|
|
420
|
+
sourced from Sidekiq Pro. [#6052]
|
|
421
|
+
- **API CHANGE** Error handlers now take three arguments `->(ex, context, config)`.
|
|
422
|
+
The previous calling convention will work until Sidekiq 8.0 but will print
|
|
423
|
+
out a deprecation warning. [#6051]
|
|
424
|
+
- Fix issue with the `batch_size` and `at` options in `S::Client.push_bulk` [#6040]
|
|
425
|
+
- Fix inline testing firing batch callbacks early [#6057]
|
|
426
|
+
- Use new log broadcast API in Rails 7.1 [#6054]
|
|
427
|
+
- Crash if user tries to use RESP2 `protocol: 2` [#6061]
|
|
428
|
+
|
|
429
|
+
7.1.4
|
|
430
|
+
----------
|
|
431
|
+
|
|
432
|
+
- Fix empty `retry_for` logic [#6035]
|
|
433
|
+
|
|
434
|
+
7.1.3
|
|
435
|
+
----------
|
|
436
|
+
|
|
437
|
+
- Add `sidekiq_options retry_for: 48.hours` to allow time-based retry windows [#6029]
|
|
438
|
+
- Support sidekiq_retry_in and sidekiq_retries_exhausted_block in ActiveJobs (#5994)
|
|
439
|
+
- Lowercase all Rack headers for Rack 3.0 [#5951]
|
|
440
|
+
- Validate Sidekiq::Web page refresh delay to avoid potential DoS,
|
|
441
|
+
CVE-2023-26141, thanks for reporting Keegan!
|
|
442
|
+
|
|
443
|
+
7.1.2
|
|
444
|
+
----------
|
|
445
|
+
|
|
446
|
+
- Mark Web UI assets as private so CDNs won't cache them [#5936]
|
|
447
|
+
- Fix stackoverflow when using Oj and the JSON log formatter [#5920]
|
|
448
|
+
- Remove spurious `enqueued_at` from scheduled ActiveJobs [#5937]
|
|
449
|
+
|
|
450
|
+
7.1.1
|
|
451
|
+
----------
|
|
452
|
+
|
|
453
|
+
- Support multiple CurrentAttributes [#5904]
|
|
454
|
+
- Speed up latency fetch with large queues on Redis <7 [#5910]
|
|
455
|
+
- Allow a larger default client pool [#5886]
|
|
456
|
+
- Ensure Sidekiq.options[:environment] == RAILS_ENV [#5932]
|
|
457
|
+
|
|
458
|
+
7.1.0
|
|
459
|
+
----------
|
|
460
|
+
|
|
461
|
+
- Improve display of ActiveJob arguments in Web UI [#5825, cover]
|
|
462
|
+
- Update `push_bulk` to push `batch_size` jobs at a time and allow laziness [#5827, fatkodima]
|
|
463
|
+
This allows Sidekiq::Client to push unlimited jobs as long as it has enough memory for the batch_size.
|
|
464
|
+
- Update `perform_bulk` to use `push_bulk` internally.
|
|
465
|
+
- Change return value of `push_bulk` to map 1-to-1 with arguments.
|
|
466
|
+
If you call `push_bulk(args: [[1], [2], [3]])`, you will now always get
|
|
467
|
+
an array of 3 values as the result: `["jid1", nil, "jid3"]` where nil means
|
|
468
|
+
that particular job did not push successfully (possibly due to middleware
|
|
469
|
+
stopping it). Previously nil values were removed so it was impossible to tell
|
|
470
|
+
which jobs pushed successfully and which did not.
|
|
471
|
+
- Migrate away from all deprecated Redis commands [#5788]
|
|
472
|
+
Sidekiq will now print a warning if you use one of those deprecated commands.
|
|
473
|
+
- Prefix all Sidekiq thread names [#5872]
|
|
474
|
+
|
|
475
|
+
7.0.9
|
|
476
|
+
----------
|
|
477
|
+
|
|
478
|
+
- Restore confirmation dialogs in Web UI [#5881, shevaun]
|
|
479
|
+
- Increase fetch timeout to minimize ReadTimeoutError [#5874]
|
|
480
|
+
- Reverse histogram tooltip ordering [#5868]
|
|
481
|
+
- Add Scottish Gaelic (gd) locale [#5867, GunChleoc]
|
|
482
|
+
|
|
483
|
+
7.0.8
|
|
484
|
+
----------
|
|
485
|
+
|
|
486
|
+
- **SECURITY** Sanitize `period` input parameter on Metrics pages.
|
|
487
|
+
Specially crafted values can lead to XSS. This functionality
|
|
488
|
+
was introduced in 7.0.4. Thank you to spercex @ huntr.dev [#5694]
|
|
489
|
+
- Add job hash as 3rd parameter to the `sidekiq_retry_in` block.
|
|
490
|
+
|
|
491
|
+
7.0.7
|
|
492
|
+
----------
|
|
493
|
+
|
|
494
|
+
- Fix redis-client API usage which could result in stuck Redis
|
|
495
|
+
connections [#5823]
|
|
496
|
+
- Fix AS::Duration with `sidekiq_retry_in` [#5806]
|
|
497
|
+
- Restore dumping config options on startup with `-v` [#5822]
|
|
498
|
+
|
|
499
|
+
7.0.5,7.0.6
|
|
500
|
+
----------
|
|
501
|
+
|
|
502
|
+
- More context for debugging json unsafe errors [#5787]
|
|
503
|
+
|
|
504
|
+
7.0.4
|
|
505
|
+
----------
|
|
506
|
+
|
|
507
|
+
- Performance and memory optimizations [#5768, fatkodima]
|
|
508
|
+
- Add 1-8 hour period selector to Metrics pages [#5694]
|
|
509
|
+
- Fix process display with `sidekiqmon` [#5733]
|
|
510
|
+
|
|
511
|
+
7.0.3
|
|
512
|
+
----------
|
|
513
|
+
|
|
514
|
+
- Don't warn about memory policy on Redis Enterprise [#5712]
|
|
515
|
+
- Don't allow Quiet/Stop on embedded Sidekiq instances [#5716]
|
|
516
|
+
- Fix `size: X` for configuring the default Redis pool size [#5702]
|
|
517
|
+
- Improve the display of queue weights on Busy page [#5642]
|
|
518
|
+
- Freeze CurrentAttributes on a job once initially set [#5692]
|
|
519
|
+
|
|
520
|
+
7.0.2
|
|
521
|
+
----------
|
|
522
|
+
|
|
523
|
+
- Improve compatibility with custom loggers [#5673]
|
|
524
|
+
- Add queue weights on Busy page [#5640]
|
|
525
|
+
- Add BID link on job_info page if job is part of a Batch [#5623]
|
|
526
|
+
- Allow custom extensions to add rows/links within Job detail pages [#5624]
|
|
527
|
+
```ruby
|
|
528
|
+
Sidekiq::Web.custom_job_info_rows << AddAccountLink.new
|
|
529
|
+
|
|
530
|
+
class AddAccountLink
|
|
531
|
+
include CGI::Util
|
|
532
|
+
def add_pair(job)
|
|
533
|
+
# yield a (name, value) pair
|
|
534
|
+
# You can include HTML tags and CSS, Sidekiq does not do any
|
|
535
|
+
# escaping so beware user data injection! Note how we use CGI's
|
|
536
|
+
# `h` escape helper.
|
|
537
|
+
aid = job["account_id"]
|
|
538
|
+
yield "Account", "<a href='/accounts/#{h aid}'>#{h aid}</a>" if aid
|
|
539
|
+
end
|
|
540
|
+
end
|
|
541
|
+
```
|
|
542
|
+
|
|
543
|
+
7.0.1
|
|
544
|
+
----------
|
|
545
|
+
|
|
546
|
+
- Allow an embedding process to reuse its own heartbeat thread
|
|
547
|
+
- Update zh-cn localization
|
|
548
|
+
|
|
549
|
+
7.0.0
|
|
550
|
+
----------
|
|
551
|
+
|
|
552
|
+
- Embedded mode!
|
|
553
|
+
- Capsules!!
|
|
554
|
+
- Job Execution metrics!!!
|
|
555
|
+
- See `docs/7.0-Upgrade.md` for release notes
|
|
556
|
+
|
|
557
|
+
6.5.{10,11,12}
|
|
558
|
+
----------
|
|
559
|
+
|
|
560
|
+
- Fixes for Rails 7.1 [#6067, #6070]
|
|
10
561
|
|
|
11
562
|
6.5.9
|
|
12
563
|
----------
|
|
@@ -19,8 +570,7 @@
|
|
|
19
570
|
- Fail if using a bad version of scout_apm [#5616]
|
|
20
571
|
- Add pagination to Busy page [#5556]
|
|
21
572
|
- Speed up WorkSet#each [#5559]
|
|
22
|
-
- Adjust CurrentAttributes to work with the String class name so we aren't referencing
|
|
23
|
-
the Class within a Rails initializer [#5536]
|
|
573
|
+
- Adjust CurrentAttributes to work with the String class name so we aren't referencing the Class within a Rails initializer [#5536]
|
|
24
574
|
|
|
25
575
|
6.5.7
|
|
26
576
|
----------
|
|
@@ -54,7 +604,7 @@ the Class within a Rails initializer [#5536]
|
|
|
54
604
|
6.5.2
|
|
55
605
|
----------
|
|
56
606
|
|
|
57
|
-
- [Job Metrics are under active development, help wanted!](https://github.com/
|
|
607
|
+
- [Job Metrics are under active development, help wanted!](https://github.com/sidekiq/sidekiq/wiki/Metrics#contributing) **BETA**
|
|
58
608
|
- Add `Context` column on queue page which shows any CurrentAttributes [#5450]
|
|
59
609
|
- `sidekiq_retry_in` may now return `:discard` or `:kill` to dynamically stop job retries [#5406]
|
|
60
610
|
- Smarter sorting of processes in /busy Web UI [#5398]
|
|
@@ -73,7 +623,7 @@ the Class within a Rails initializer [#5536]
|
|
|
73
623
|
- Substantial refactoring of Sidekiq server internals, part of a larger effort
|
|
74
624
|
to reduce Sidekiq's internal usage of global methods and data, see [docs/global_to_local.md](docs/global_to_local.md) and [docs/middleware.md](docs/middleware.md).
|
|
75
625
|
- **Add beta support for the `redis-client` gem**. This will become the default Redis driver in Sidekiq 7.0. [#5298]
|
|
76
|
-
Read more: https://github.com/
|
|
626
|
+
Read more: https://github.com/sidekiq/sidekiq/wiki/Using-redis-client
|
|
77
627
|
- **Add beta support for DB transaction-aware client** [#5291]
|
|
78
628
|
Add this line to your initializer and any jobs created during a transaction
|
|
79
629
|
will only be pushed to Redis **after the transaction commits**. You will need to add the
|
|
@@ -273,7 +823,7 @@ If this is a Rails app in API mode, you need to enable sessions.
|
|
|
273
823
|
---------
|
|
274
824
|
|
|
275
825
|
- **Integrate with systemd's watchdog and notification features** [#4488]
|
|
276
|
-
Set `Type=notify` in [sidekiq.service](https://github.com/
|
|
826
|
+
Set `Type=notify` in [sidekiq.service](https://github.com/sidekiq/sidekiq/blob/4b8a8bd3ae42f6e48ae1fdaf95ed7d7af18ed8bb/examples/systemd/sidekiq.service#L30-L39). The integration works automatically.
|
|
277
827
|
- Use `setTimeout` rather than `setInterval` to avoid thundering herd [#4480]
|
|
278
828
|
- Fix edge case where a job can be pushed without a queue.
|
|
279
829
|
- Flush job stats at exit [#4498]
|
|
@@ -286,7 +836,7 @@ If this is a Rails app in API mode, you need to enable sessions.
|
|
|
286
836
|
- Fix broken Web UI response when using NewRelic and Rack 2.1.2+. [#4440]
|
|
287
837
|
- Update APIs to use `UNLINK`, not `DEL`. [#4449]
|
|
288
838
|
- Fix Ruby 2.7 warnings [#4412]
|
|
289
|
-
- Add support for `APP_ENV` [[95fa5d9]](https://github.com/
|
|
839
|
+
- Add support for `APP_ENV` [[95fa5d9]](https://github.com/sidekiq/sidekiq/commit/95fa5d90192148026e52ca2902f1b83c70858ce8)
|
|
290
840
|
|
|
291
841
|
6.0.4
|
|
292
842
|
---------
|
|
@@ -398,7 +948,7 @@ Sidekiq.configure_server do |config|
|
|
|
398
948
|
config.log_formatter = Sidekiq::Logger::Formatters::JSON.new
|
|
399
949
|
end
|
|
400
950
|
```
|
|
401
|
-
See the [Logging wiki page](https://github.com/
|
|
951
|
+
See the [Logging wiki page](https://github.com/sidekiq/sidekiq/wiki/Logging) for more details.
|
|
402
952
|
- **BREAKING CHANGE** Validate proper usage of the `REDIS_PROVIDER`
|
|
403
953
|
variable. This variable is meant to hold the name of the environment
|
|
404
954
|
variable which contains your Redis URL, so that you can switch Redis
|
|
@@ -590,7 +1140,7 @@ Sidekiq::Middleware::Server::Logging -> Sidekiq::JobLogger
|
|
|
590
1140
|
- The `SomeWorker.set(options)` API was re-written to avoid thread-local state. [#2152]
|
|
591
1141
|
- Sidekiq Enterprise's encrypted jobs now display "[encrypted data]" in the Web UI instead
|
|
592
1142
|
of random hex bytes.
|
|
593
|
-
- Please see the [5.0 Upgrade notes](5.0-Upgrade.md) for more detail.
|
|
1143
|
+
- Please see the [5.0 Upgrade notes](docs/5.0-Upgrade.md) for more detail.
|
|
594
1144
|
|
|
595
1145
|
4.2.10
|
|
596
1146
|
-----------
|
|
@@ -808,7 +1358,7 @@ Sidekiq::Queues.clear_all
|
|
|
808
1358
|
- Sidekiq's internals have been completely overhauled for performance
|
|
809
1359
|
and to remove dependencies. This has resulted in major speedups, as
|
|
810
1360
|
[detailed on my blog](http://www.mikeperham.com/2015/10/14/optimizing-sidekiq/).
|
|
811
|
-
- See the [4.0 upgrade notes](4.0-Upgrade.md) for more detail.
|
|
1361
|
+
- See the [4.0 upgrade notes](docs/4.0-Upgrade.md) for more detail.
|
|
812
1362
|
|
|
813
1363
|
3.5.4
|
|
814
1364
|
-----------
|
|
@@ -845,7 +1395,7 @@ Sidekiq::Queues.clear_all
|
|
|
845
1395
|
- **FIX MEMORY LEAK** Under rare conditions, threads may leak [#2598, gazay]
|
|
846
1396
|
- Add Ukrainian locale [#2561, elrakita]
|
|
847
1397
|
- Disconnect and retry Redis operations if we see a READONLY error [#2550]
|
|
848
|
-
- Add server middleware testing harness; see [wiki](https://github.com/
|
|
1398
|
+
- Add server middleware testing harness; see [wiki](https://github.com/sidekiq/sidekiq/wiki/Testing#testing-server-middleware) [#2534, ryansch]
|
|
849
1399
|
|
|
850
1400
|
3.5.0
|
|
851
1401
|
-----------
|
|
@@ -863,7 +1413,7 @@ Sidekiq::Queues.clear_all
|
|
|
863
1413
|
- Fix CSRF vulnerability in Web UI, thanks to Egor Homakov for
|
|
864
1414
|
reporting. [#2422] If you are running the Web UI as a standalone Rack app,
|
|
865
1415
|
ensure you have a [session middleware
|
|
866
|
-
configured](https://github.com/
|
|
1416
|
+
configured](https://github.com/sidekiq/sidekiq/wiki/Monitoring#standalone):
|
|
867
1417
|
```ruby
|
|
868
1418
|
use Rack::Session::Cookie, :secret => "some unique secret string here"
|
|
869
1419
|
```
|
|
@@ -1075,7 +1625,7 @@ sidekiq_options :dead => false, :retry => 5
|
|
|
1075
1625
|
3.0.0
|
|
1076
1626
|
-----------
|
|
1077
1627
|
|
|
1078
|
-
Please see [3.0-Upgrade.md](3.0-Upgrade.md) for more comprehensive upgrade notes.
|
|
1628
|
+
Please see [3.0-Upgrade.md](docs/3.0-Upgrade.md) for more comprehensive upgrade notes.
|
|
1079
1629
|
|
|
1080
1630
|
- **Dead Job Queue** - jobs which run out of retries are now moved to a dead
|
|
1081
1631
|
job queue. These jobs must be retried manually or they will expire
|
|
@@ -1119,7 +1669,7 @@ Sidekiq::Client.via(ConnectionPool.new { Redis.new }) do
|
|
|
1119
1669
|
end
|
|
1120
1670
|
```
|
|
1121
1671
|
**Sharding support does require a breaking change to client-side
|
|
1122
|
-
middleware, see 3.0-Upgrade.md.**
|
|
1672
|
+
middleware, see docs/3.0-Upgrade.md.**
|
|
1123
1673
|
- New Chinese, Greek, Swedish and Czech translations for the Web UI.
|
|
1124
1674
|
- Updated most languages translations for the new UI features.
|
|
1125
1675
|
- **Remove official Capistrano integration** - this integration has been
|
|
@@ -1247,7 +1797,7 @@ middleware, see 3.0-Upgrade.md.**
|
|
|
1247
1797
|
appear to be doing any work. [#1194]
|
|
1248
1798
|
- Sidekiq's testing behavior is now dynamic. You can choose between
|
|
1249
1799
|
`inline` and `fake` behavior in your tests. See
|
|
1250
|
-
[Testing](https://github.com/
|
|
1800
|
+
[Testing](https://github.com/sidekiq/sidekiq/wiki/Testing) for detail. [#1193]
|
|
1251
1801
|
- The Retries table has a new column for the error message.
|
|
1252
1802
|
- The Web UI topbar now contains the status and live poll button.
|
|
1253
1803
|
- Orphaned worker records are now auto-vacuumed when you visit the
|