sidekiq 6.1.3 → 6.2.0
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 +31 -0
- data/lib/sidekiq/api.rb +15 -3
- data/lib/sidekiq/fetch.rb +9 -1
- data/lib/sidekiq/launcher.rb +26 -0
- data/lib/sidekiq/version.rb +1 -1
- data/lib/sidekiq/web.rb +33 -78
- data/lib/sidekiq/web/application.rb +7 -1
- data/lib/sidekiq/web/csrf_protection.rb +22 -1
- data/lib/sidekiq/web/helpers.rb +13 -4
- data/lib/sidekiq/web/router.rb +4 -1
- data/sidekiq.gemspec +9 -1
- data/web/assets/images/apple-touch-icon.png +0 -0
- data/web/assets/stylesheets/application-dark.css +11 -0
- data/web/assets/stylesheets/application.css +9 -6
- data/web/views/busy.erb +41 -13
- data/web/views/layout.erb +1 -0
- metadata +9 -24
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -20
- data/.github/contributing.md +0 -32
- data/.github/workflows/ci.yml +0 -41
- data/.gitignore +0 -13
- data/.standard.yml +0 -20
- data/3.0-Upgrade.md +0 -70
- data/4.0-Upgrade.md +0 -53
- data/5.0-Upgrade.md +0 -56
- data/6.0-Upgrade.md +0 -72
- data/COMM-LICENSE +0 -97
- data/Ent-2.0-Upgrade.md +0 -37
- data/Ent-Changes.md +0 -309
- data/Gemfile +0 -24
- data/Gemfile.lock +0 -193
- 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-5.0-Upgrade.md +0 -25
- data/Pro-Changes.md +0 -813
- data/Rakefile +0 -10
- data/code_of_conduct.md +0 -50
data/Pro-Changes.md
DELETED
@@ -1,813 +0,0 @@
|
|
1
|
-
# Sidekiq Pro Changelog
|
2
|
-
|
3
|
-
[Sidekiq Changes](https://github.com/mperham/sidekiq/blob/master/Changes.md) | [Sidekiq Pro Changes](https://github.com/mperham/sidekiq/blob/master/Pro-Changes.md) | [Sidekiq Enterprise Changes](https://github.com/mperham/sidekiq/blob/master/Ent-Changes.md)
|
4
|
-
|
5
|
-
Please see [sidekiq.org](https://sidekiq.org/) for more details and how to buy.
|
6
|
-
|
7
|
-
5.2.1
|
8
|
-
---------
|
9
|
-
|
10
|
-
- Propagate death callbacks to parent batches [#4774]
|
11
|
-
- Allow customization of Batch linger to quickly reclaim memory in Redis [#4772]
|
12
|
-
- Fix disappearing processes in Busy due to super_fetch initialization when used in
|
13
|
-
tandem with `SIDEKIQ_PRELOAD_APP=1` in `sidekiqswarm`. [#4733]
|
14
|
-
|
15
|
-
5.2.0
|
16
|
-
---------
|
17
|
-
|
18
|
-
- The Sidekiq Pro and Enterprise gem servers now `bundle install` much faster with **Bundler 2.2+** [#4158]
|
19
|
-
- Fix issue with reliable push and multiple shards [#4669]
|
20
|
-
- Fix Pro memory leak due to fetch refactoring in Sidekiq 6.1 [#4652]
|
21
|
-
- Gracefully handle poison pill jobs [#4633]
|
22
|
-
- Remove support for multi-shard batches [#4642]
|
23
|
-
- Rename `Sidekiq::Rack::BatchStatus` to `Sidekiq::Pro::BatchStatus` [#4655]
|
24
|
-
|
25
|
-
5.1.1
|
26
|
-
---------
|
27
|
-
|
28
|
-
- Fix broken basic fetcher [#4616]
|
29
|
-
|
30
|
-
5.1.0
|
31
|
-
---------
|
32
|
-
|
33
|
-
- Remove old Statsd metrics with `WorkerName` in the name [#4377]
|
34
|
-
```
|
35
|
-
job.WorkerName.count -> job.count with tag worker:WorkerName
|
36
|
-
job.WorkerName.perform -> job.perform with tag worker:WorkerName
|
37
|
-
job.WorkerName.failure -> job.failure with tag worker:WorkerName
|
38
|
-
```
|
39
|
-
- Remove `concurrent-ruby` gem dependency [#4586]
|
40
|
-
- Update `constantize` for batch callbacks. [#4469]
|
41
|
-
- Add queue tag to `jobs.recovered.fetch` metric [#4594]
|
42
|
-
- Refactor Pro's fetch infrastructure [#4602]
|
43
|
-
|
44
|
-
5.0.1
|
45
|
-
---------
|
46
|
-
|
47
|
-
- Rejigger batch failures UI to add direct links to retries and scheduled jobs [#4209]
|
48
|
-
- Delete batch data with `UNLINK` [#4155]
|
49
|
-
- Fix bug where a scheduled job can lose its scheduled time when using reliable push [#4267]
|
50
|
-
- Sidekiq::JobSet#scan and #find_job APIs have been promoted to Sidekiq OSS. [#4259]
|
51
|
-
|
52
|
-
5.0.0
|
53
|
-
---------
|
54
|
-
|
55
|
-
- There is no significant migration from Sidekiq Pro 4.0 to 5.0
|
56
|
-
but make sure you read the [update notes for Sidekiq
|
57
|
-
6.0](https://github.com/mperham/sidekiq/blob/master/6.0-Upgrade.md).
|
58
|
-
- Removed various deprecated APIs and associated warnings.
|
59
|
-
- **BREAKING CHANGE** Remove the `Sidekiq::Batch::Status#dead_jobs` API in favor of
|
60
|
-
`Sidekiq::Batch::Status#dead_jids`. [#4217]
|
61
|
-
- Update Sidekiq Pro codebase to use StandardRB formatting
|
62
|
-
- Fix lingering "b-XXX-died" elements in Redis which could cause
|
63
|
-
excessive memory usage. [#4217]
|
64
|
-
- Add ES translations, see issues [#3949](https://github.com/mperham/sidekiq/issues/3949) and [#3951](https://github.com/mperham/sidekiq/issues/3951) to add your own language.
|
65
|
-
|
66
|
-
4.0.5
|
67
|
-
---------
|
68
|
-
|
69
|
-
- Increase super\_fetch retriever thread count from 1 to 2 to make it
|
70
|
-
less sensitive to Redis latency.
|
71
|
-
- Better handling of invalid job JSON by reliable scheduler [#4053]
|
72
|
-
- Added ZH, PT, JA and RU translations.
|
73
|
-
|
74
|
-
4.0.4
|
75
|
-
---------
|
76
|
-
|
77
|
-
- Update Sidekiq::Client patches to work with new Module#prepend
|
78
|
-
mechanism in Sidekiq 5.2.0. [#3930]
|
79
|
-
|
80
|
-
4.0.3
|
81
|
-
---------
|
82
|
-
|
83
|
-
- Add at\_exit handler to push any saved jobs in `reliable_push` when exiting. [#3823]
|
84
|
-
- Implement batch death callback. This is fired the first time a job within a batch dies. [#3841]
|
85
|
-
```ruby
|
86
|
-
batch = Sidekiq::Batch.new
|
87
|
-
batch.on(:death, ...)
|
88
|
-
```
|
89
|
-
|
90
|
-
4.0.2
|
91
|
-
---------
|
92
|
-
|
93
|
-
- Remove super\_fetch edge case leading to an unnecessary `sleep(1)`
|
94
|
-
call and resulting latency [#3790]
|
95
|
-
- Fix possible bad statsd metric call on super\_fetch startup
|
96
|
-
- Remove superfluous `freeze` calls on Strings [#3759]
|
97
|
-
|
98
|
-
4.0.1
|
99
|
-
---------
|
100
|
-
|
101
|
-
- Fix incompatibility with the statsd-ruby gem [#3740]
|
102
|
-
- Add tags to Statsd metrics when using Datadog [#3744]
|
103
|
-
|
104
|
-
4.0.0
|
105
|
-
---------
|
106
|
-
|
107
|
-
- See the [Sidekiq Pro 4.0](Pro-4.0-Upgrade.md) release notes.
|
108
|
-
|
109
|
-
|
110
|
-
3.7.1
|
111
|
-
---------
|
112
|
-
|
113
|
-
- Deprecate timed\_fetch. Switch to super\_fetch:
|
114
|
-
```ruby
|
115
|
-
config.super_fetch!
|
116
|
-
```
|
117
|
-
|
118
|
-
|
119
|
-
3.7.0
|
120
|
-
---------
|
121
|
-
|
122
|
-
- Refactor batch job success/failure to gracefully handle several edge
|
123
|
-
cases with regard to Sidekiq::Shutdown. This should greatly reduce
|
124
|
-
the chances of seeing the long-standing "negative pending count" problem. [#3710]
|
125
|
-
|
126
|
-
|
127
|
-
3.6.1
|
128
|
-
---------
|
129
|
-
|
130
|
-
- Add support for Datadog::Statsd, it is the recommended Statsd client. [#3699]
|
131
|
-
```ruby
|
132
|
-
Sidekiq::Pro.dogstatsd = ->{ Datadog::Statsd.new("metrics.example.com", 8125) }
|
133
|
-
```
|
134
|
-
- Size the statsd connection pool based on Sidekiq's concurrency [#3700]
|
135
|
-
|
136
|
-
|
137
|
-
3.6.0
|
138
|
-
---------
|
139
|
-
|
140
|
-
This release overhauls the Statsd metrics support and adds more
|
141
|
-
metrics for tracking Pro feature usage. In your initializer:
|
142
|
-
```ruby
|
143
|
-
Sidekiq::Pro.statsd = ->{ ::Statsd.new("127.0.0.1", 8125) }
|
144
|
-
```
|
145
|
-
Sidekiq Pro will emit more metrics to Statsd:
|
146
|
-
```
|
147
|
-
jobs.expired - when a job is expired
|
148
|
-
jobs.recovered.push - when a job is recovered by reliable_push after network outage
|
149
|
-
jobs.recovered.fetch - when a job is recovered by super_fetch after process crash
|
150
|
-
batch.created - when a batch is created
|
151
|
-
batch.complete - when a batch is completed
|
152
|
-
batch.success - when a batch is successful
|
153
|
-
```
|
154
|
-
Sidekiq Pro's existing Statsd middleware has been rewritten to leverage the new API.
|
155
|
-
Everything should be backwards compatible with one deprecation notice.
|
156
|
-
|
157
|
-
|
158
|
-
3.5.4
|
159
|
-
---------
|
160
|
-
|
161
|
-
- Fix case in SuperFetch where Redis downtime can lead to processor thread death [#3684]
|
162
|
-
- Fix case where TimedFetch might not recover some pending jobs
|
163
|
-
- Fix edge case in Batch::Status#poll leading to premature completion [#3640]
|
164
|
-
- Adjust scan API to check 100 elements at a time, to minimize network round trips
|
165
|
-
when scanning large sets.
|
166
|
-
|
167
|
-
3.5.3
|
168
|
-
---------
|
169
|
-
|
170
|
-
- Restore error check for super\_fetch's job ack [#3601]
|
171
|
-
- Trim error messages saved in Batch's failure hash, preventing huge
|
172
|
-
messages from bloating Redis. [#3570]
|
173
|
-
|
174
|
-
3.5.2
|
175
|
-
---------
|
176
|
-
|
177
|
-
- Fix `Status#completed?` when run against a Batch that had succeeded
|
178
|
-
and was deleted. [#3519]
|
179
|
-
|
180
|
-
3.5.1
|
181
|
-
---------
|
182
|
-
|
183
|
-
- Work with Sidekiq 5.0.2+
|
184
|
-
- Improve performance of super\_fetch with weighted queues [#3489]
|
185
|
-
|
186
|
-
3.5.0
|
187
|
-
---------
|
188
|
-
|
189
|
-
- Add queue pause/unpause endpoints for scripting via curl [#3445]
|
190
|
-
- Change how super\_fetch names private queues to avoid hostname/queue clashes. [#3443]
|
191
|
-
- Re-implement `Sidekiq::Queue#delete_job` to avoid O(n) runtime [#3408]
|
192
|
-
- Batch page displays Pending JIDs if less than 10 [#3130]
|
193
|
-
- Batch page has a Search button to find associated Retries [#3130]
|
194
|
-
- Make Batch UI progress bar more friendly to the colorblind [#3387]
|
195
|
-
|
196
|
-
3.4.5
|
197
|
-
---------
|
198
|
-
|
199
|
-
- Fix potential job loss with reliable scheduler when lots of jobs are scheduled
|
200
|
-
at precisely the same time. Thanks to raivil for his hard work in
|
201
|
-
reproducing the bug. [#3371]
|
202
|
-
|
203
|
-
3.4.4
|
204
|
-
---------
|
205
|
-
|
206
|
-
- Optimize super\_fetch shutdown to restart jobs quicker [#3249]
|
207
|
-
|
208
|
-
3.4.3
|
209
|
-
---------
|
210
|
-
|
211
|
-
- Limit reliable scheduler to enqueue up to 100 jobs per call, minimizing Redis latency [#3332]
|
212
|
-
- Fix bug in super\_fetch logic for queues with `_` in the name [#3339]
|
213
|
-
|
214
|
-
3.4.2
|
215
|
-
---------
|
216
|
-
|
217
|
-
- Add `Batch::Status#invalidated?` API which returns true if any/all
|
218
|
-
JIDs were invalidated within the batch. [#3326]
|
219
|
-
|
220
|
-
3.4.1
|
221
|
-
---------
|
222
|
-
|
223
|
-
- Allow super\_fetch's orphan job check to happen as often as every hour [#3273]
|
224
|
-
- Officially deprecate reliable\_fetch algorithm, I now recommend you use `super_fetch` instead:
|
225
|
-
```ruby
|
226
|
-
Sidekiq.configure_server do |config|
|
227
|
-
config.super_fetch!
|
228
|
-
end
|
229
|
-
```
|
230
|
-
Also note that Sidekiq's `-i/--index` option is no longer used/relevant with super\_fetch.
|
231
|
-
- Don't display "Delete/Retry All" buttons when filtering in Web UI [#3243]
|
232
|
-
- Reimplement Sidekiq::JobSet#find\_job with ZSCAN [#3197]
|
233
|
-
|
234
|
-
3.4.0
|
235
|
-
---------
|
236
|
-
|
237
|
-
- Introducing the newest reliable fetching algorithm: `super_fetch`! This
|
238
|
-
algorithm will replace reliable\_fetch in Pro 4.0. super\_fetch is
|
239
|
-
bullet-proof across all environments, no longer requiring stable
|
240
|
-
hostnames or an index to be set per-process. [#3077]
|
241
|
-
```ruby
|
242
|
-
Sidekiq.configure_server do |config|
|
243
|
-
config.super_fetch!
|
244
|
-
end
|
245
|
-
```
|
246
|
-
Thank you to @jonhyman for code review and the Sidekiq Pro customers that
|
247
|
-
beta tested super\_fetch.
|
248
|
-
|
249
|
-
3.3.3
|
250
|
-
---------
|
251
|
-
|
252
|
-
- Update Web UI extension to work with Sidekiq 4.2.0's new Web UI. [#3075]
|
253
|
-
|
254
|
-
3.3.2
|
255
|
-
---------
|
256
|
-
|
257
|
-
- Minimize batch memory usage after success [#3083]
|
258
|
-
- Extract batch's 24 hr linger expiry to a LINGER constant so it can be tuned. [#3011]
|
259
|
-
|
260
|
-
3.3.1
|
261
|
-
---------
|
262
|
-
|
263
|
-
- If environment is unset, treat it as development so reliable\_fetch works as before 3.2.2.
|
264
|
-
|
265
|
-
3.3.0
|
266
|
-
---------
|
267
|
-
|
268
|
-
- Don't delete batches immediately upon success but set a 24 hr expiry, this allows
|
269
|
-
Sidekiq::Batch::Status#poll to work, even after batch success. [#3011]
|
270
|
-
- New `Sidekiq::PendingSet#destroy(jid)` API to remove poison pill jobs [#3015]
|
271
|
-
|
272
|
-
3.2.2
|
273
|
-
---------
|
274
|
-
|
275
|
-
- A default value for -i is only set in development now, staging or
|
276
|
-
other environments must set an index if you wish to use reliable\_fetch. [#2971]
|
277
|
-
- Fix nil dereference when checking for jobs over timeout in timed\_fetch
|
278
|
-
|
279
|
-
|
280
|
-
3.2.1
|
281
|
-
---------
|
282
|
-
|
283
|
-
- timed\_fetch now works with namespaces. [ryansch]
|
284
|
-
|
285
|
-
|
286
|
-
3.2.0
|
287
|
-
---------
|
288
|
-
|
289
|
-
- Fixed detection of missing batches, `NoSuchBatch` should be raised
|
290
|
-
properly now if `Sidekiq::Batch.new(bid)` is called on a batch no
|
291
|
-
longer in Redis.
|
292
|
-
- Remove support for Pro 1.x format batches. This version will no
|
293
|
-
longer seamlessly process batches created with Sidekiq Pro 1.x.
|
294
|
-
As always, upgrade one major version at a time to ensure a smooth
|
295
|
-
transition.
|
296
|
-
- Fix edge case where a parent batch could expire before a child batch
|
297
|
-
was finished processing, leading to missing batches [#2889]
|
298
|
-
|
299
|
-
2.1.5
|
300
|
-
---------
|
301
|
-
|
302
|
-
- Fix edge case where a parent batch could expire before a child batch
|
303
|
-
was finished processing, leading to missing batches [#2889]
|
304
|
-
|
305
|
-
3.1.0
|
306
|
-
---------
|
307
|
-
|
308
|
-
- New container-friendly fetch algorithm: `timed_fetch`. See the
|
309
|
-
[wiki documentation](https://github.com/mperham/sidekiq/wiki/Pro-Reliability-Server)
|
310
|
-
for trade offs between the two reliability options. You should
|
311
|
-
use this if you are on Heroku, Docker, Amazon ECS or EBS or
|
312
|
-
another container-based system.
|
313
|
-
|
314
|
-
|
315
|
-
3.0.6
|
316
|
-
---------
|
317
|
-
|
318
|
-
- Fix race condition on reliable fetch shutdown
|
319
|
-
|
320
|
-
3.0.5
|
321
|
-
---------
|
322
|
-
|
323
|
-
- Statsd metrics now account for ActiveJob class names
|
324
|
-
- Allow reliable fetch internals to be overridden [jonhyman]
|
325
|
-
|
326
|
-
3.0.4
|
327
|
-
---------
|
328
|
-
|
329
|
-
- Queue pausing no longer requires reliable fetch. [#2786]
|
330
|
-
|
331
|
-
3.0.3, 2.1.4
|
332
|
-
------------
|
333
|
-
|
334
|
-
- Convert Lua-based `Sidekiq::Queue#delete_by_class` to Ruby-based, to
|
335
|
-
avoid O(N^2) performance and possible Redis failure. [#2806]
|
336
|
-
|
337
|
-
3.0.2
|
338
|
-
-----------
|
339
|
-
|
340
|
-
- Make job registration with batch part of the atomic push so batch
|
341
|
-
metadata can't get out of sync with the job data. [#2714]
|
342
|
-
|
343
|
-
3.0.1
|
344
|
-
-----------
|
345
|
-
|
346
|
-
- Remove a number of Redis version checks since we can assume 2.8+ now.
|
347
|
-
- Fix expiring jobs client middleware not loaded on server
|
348
|
-
|
349
|
-
3.0.0
|
350
|
-
-----------
|
351
|
-
|
352
|
-
- See the [Pro 3.0 release notes](Pro-3.0-Upgrade.md).
|
353
|
-
|
354
|
-
2.1.3
|
355
|
-
-----------
|
356
|
-
|
357
|
-
- Don't enable strict priority if using weighted queueing like `-q a,1 -q b,1`
|
358
|
-
- Safer JSON mangling in Lua [#2639]
|
359
|
-
|
360
|
-
2.1.2
|
361
|
-
-----------
|
362
|
-
|
363
|
-
- Lock Sidekiq Pro 2.x to Sidekiq 3.x.
|
364
|
-
|
365
|
-
2.1.1
|
366
|
-
-----------
|
367
|
-
|
368
|
-
- Make ShardSet lazier so Redis can first be initialized at startup. [#2603]
|
369
|
-
|
370
|
-
|
371
|
-
2.1.0
|
372
|
-
-----------
|
373
|
-
|
374
|
-
- Explicit support for sharding batches. You list your Redis shards and
|
375
|
-
Sidekiq Pro will randomly spread batches across the shards. The BID
|
376
|
-
will indicate which shard contains the batch data. Jobs within a
|
377
|
-
batch may be spread across all shards too. [#2548, jonhyman]
|
378
|
-
- Officially deprecate Sidekiq::Notifications code. Notifications have
|
379
|
-
been undocumented for months now. [#2575]
|
380
|
-
|
381
|
-
|
382
|
-
2.0.8
|
383
|
-
-----------
|
384
|
-
|
385
|
-
- Fix reliable scheduler mangling large numeric arguments. Lua's CJSON
|
386
|
-
library cannot accurately encode numbers larger than 14 digits! [#2478]
|
387
|
-
|
388
|
-
2.0.7
|
389
|
-
-----------
|
390
|
-
|
391
|
-
- Optimize delete of enormous batches (100,000s of jobs) [#2458]
|
392
|
-
|
393
|
-
2.0.6, 1.9.3
|
394
|
-
--------------
|
395
|
-
|
396
|
-
- CSRF protection in Sidekiq 3.4.2 broke job filtering in the Web UI [#2442]
|
397
|
-
- Sidekiq Pro 1.x is now limited to Sidekiq < 3.5.0.
|
398
|
-
|
399
|
-
2.0.5
|
400
|
-
-----------
|
401
|
-
|
402
|
-
- Atomic scheduler now sets `enqueued_at` [#2414]
|
403
|
-
- Batches now account for jobs which are stopped by client middleware [#2406]
|
404
|
-
- Ignore redundant calls to `Sidekiq::Client.reliable_push!` [#2408]
|
405
|
-
|
406
|
-
2.0.4
|
407
|
-
-----------
|
408
|
-
|
409
|
-
- Reliable push now supports sharding [#2409]
|
410
|
-
- Reliable push now only catches Redis exceptions [#2307]
|
411
|
-
|
412
|
-
2.0.3
|
413
|
-
-----------
|
414
|
-
|
415
|
-
- Display Batch callback data on the Batch details page. [#2347]
|
416
|
-
- Fix incompatibility with Pro Web and Rack middleware. [#2344] Thank
|
417
|
-
you to Jason Clark for the tip on how to fix it.
|
418
|
-
|
419
|
-
2.0.2
|
420
|
-
-----------
|
421
|
-
|
422
|
-
- Multiple Web UIs can now run in the same process. [#2267] If you have
|
423
|
-
multiple Redis shards, you can mount UIs for all in the same process:
|
424
|
-
```ruby
|
425
|
-
POOL1 = ConnectionPool.new { Redis.new(:url => "redis://localhost:6379/0") }
|
426
|
-
POOL2 = ConnectionPool.new { Redis.new(:url => "redis://localhost:6378/0") }
|
427
|
-
|
428
|
-
mount Sidekiq::Pro::Web => '/sidekiq' # default
|
429
|
-
mount Sidekiq::Pro::Web.with(redis_pool: POOL1), at: '/sidekiq1', as: 'sidekiq1' # shard1
|
430
|
-
mount Sidekiq::Pro::Web.with(redis_pool: POOL2), at: '/sidekiq2', as: 'sidekiq2' # shard2
|
431
|
-
```
|
432
|
-
- **SECURITY** Fix batch XSS in error data. Thanks to moneybird.com for
|
433
|
-
reporting the issue.
|
434
|
-
|
435
|
-
2.0.1
|
436
|
-
-----------
|
437
|
-
|
438
|
-
- Add `batch.callback_queue` so batch callbacks can use a higher
|
439
|
-
priority queue than jobs. [#2200]
|
440
|
-
- Gracefully recover if someone runs `SCRIPT FLUSH` on Redis. [#2240]
|
441
|
-
- Ignore errors when attempting `bulk_requeue`, allowing clean shutdown
|
442
|
-
|
443
|
-
2.0.0
|
444
|
-
-----------
|
445
|
-
|
446
|
-
- See [the Upgrade Notes](Pro-2.0-Upgrade.md) for detailed notes.
|
447
|
-
|
448
|
-
1.9.2
|
449
|
-
-----------
|
450
|
-
|
451
|
-
- As of 1/1/2015, Sidekiq Pro is hosted on a new dedicated server.
|
452
|
-
Happy new year and let's hope for 100% uptime!
|
453
|
-
- Fix bug in reliable\_fetch where jobs could be duplicated if a Sidekiq
|
454
|
-
process crashed and you were using weighted queues. [#2120]
|
455
|
-
|
456
|
-
1.9.1
|
457
|
-
-----------
|
458
|
-
|
459
|
-
- **SECURITY** Fix XSS in batch description, thanks to intercom.io for reporting the
|
460
|
-
issue. If you don't use batch descriptions, you don't need the fix.
|
461
|
-
|
462
|
-
1.9.0
|
463
|
-
-----------
|
464
|
-
|
465
|
-
- Add new expiring jobs feature [#1982]
|
466
|
-
- Show batch expiration on Batch details page [#1981]
|
467
|
-
- Add '$' batch success token to the pubsub support. [#1953]
|
468
|
-
|
469
|
-
|
470
|
-
1.8.0
|
471
|
-
-----------
|
472
|
-
|
473
|
-
- Fix race condition where Batches can complete
|
474
|
-
before they have been fully defined or only half-defined. Requires
|
475
|
-
Sidekiq 3.2.3. [#1919]
|
476
|
-
|
477
|
-
|
478
|
-
1.7.6
|
479
|
-
-----------
|
480
|
-
|
481
|
-
- Quick release to verify #1919
|
482
|
-
|
483
|
-
|
484
|
-
1.7.5
|
485
|
-
-----------
|
486
|
-
|
487
|
-
- Fix job filtering within the Dead tab.
|
488
|
-
- Add APIs and wiki documentation for invalidating jobs within a batch.
|
489
|
-
|
490
|
-
|
491
|
-
1.7.4
|
492
|
-
-----------
|
493
|
-
|
494
|
-
- Awesome ANSI art startup banner!
|
495
|
-
|
496
|
-
|
497
|
-
1.7.3
|
498
|
-
-----------
|
499
|
-
|
500
|
-
- Batch callbacks should use the same queue as the associated jobs.
|
501
|
-
|
502
|
-
1.7.2
|
503
|
-
-----------
|
504
|
-
|
505
|
-
- **DEPRECATION** Use `Batch#on(:complete)` instead of `Batch#notify`.
|
506
|
-
The specific Campfire, HipChat, email and other notification schemes
|
507
|
-
will be removed in 2.0.0.
|
508
|
-
- Remove batch from UI when successful. [#1745]
|
509
|
-
- Convert batch callbacks to be asynchronous jobs for error handling [#1744]
|
510
|
-
|
511
|
-
1.7.1
|
512
|
-
-----------
|
513
|
-
|
514
|
-
- Fix for paused queues being processed for a few seconds when starting
|
515
|
-
a new Sidekiq process.
|
516
|
-
- Add a 5 sec delay when starting reliable fetch on Heroku to minimize
|
517
|
-
any duplicate job processing with another process shutting down.
|
518
|
-
|
519
|
-
1.7.0
|
520
|
-
-----------
|
521
|
-
|
522
|
-
- Add ability to pause reliable queues via API.
|
523
|
-
```ruby
|
524
|
-
q = Sidekiq::Queue.new("critical")
|
525
|
-
q.pause!
|
526
|
-
q.paused? # => true
|
527
|
-
q.unpause!
|
528
|
-
```
|
529
|
-
|
530
|
-
Sidekiq polls Redis every 10 seconds for paused queues so pausing will take
|
531
|
-
a few seconds to take effect.
|
532
|
-
|
533
|
-
1.6.0
|
534
|
-
-----------
|
535
|
-
|
536
|
-
- Compatible with Sidekiq 3.
|
537
|
-
|
538
|
-
1.5.1
|
539
|
-
-----------
|
540
|
-
|
541
|
-
- Due to a breaking API change in Sidekiq 3.0, this version is limited
|
542
|
-
to Sidekiq 2.x.
|
543
|
-
|
544
|
-
1.5.0
|
545
|
-
-----------
|
546
|
-
|
547
|
-
- Fix issue on Heroku where reliable fetch could orphan jobs [#1573]
|
548
|
-
|
549
|
-
|
550
|
-
1.4.3
|
551
|
-
-----------
|
552
|
-
|
553
|
-
- Reverse sorting of Batches in Web UI [#1098]
|
554
|
-
- Refactoring for Sidekiq 3.0, Pro now requires Sidekiq 2.17.5
|
555
|
-
|
556
|
-
1.4.2
|
557
|
-
-----------
|
558
|
-
|
559
|
-
- Tolerate expired Batches in the web UI.
|
560
|
-
- Fix 100% CPU usage when using weighted queues and reliable fetch.
|
561
|
-
|
562
|
-
1.4.1
|
563
|
-
-----------
|
564
|
-
|
565
|
-
- Add batch progress bar to batch detail page. [#1398]
|
566
|
-
- Fix race condition in initializing Lua scripts
|
567
|
-
|
568
|
-
|
569
|
-
1.4.0
|
570
|
-
-----------
|
571
|
-
|
572
|
-
- Default batch expiration has been extended to 3 days, from 1 day previously.
|
573
|
-
- Batches now sort in the Web UI according to expiry time, not creation time.
|
574
|
-
- Add user-configurable batch expiry. If your batches might take longer
|
575
|
-
than 72 hours to process, you can extend the expiration date.
|
576
|
-
|
577
|
-
```ruby
|
578
|
-
b = Sidekiq::Batch.new
|
579
|
-
b.expires_in 5.days
|
580
|
-
...
|
581
|
-
```
|
582
|
-
|
583
|
-
1.3.2
|
584
|
-
-----------
|
585
|
-
|
586
|
-
- Lazy load Lua scripts so a Redis connection is not required on bootup.
|
587
|
-
|
588
|
-
1.3.1
|
589
|
-
-----------
|
590
|
-
|
591
|
-
- Fix a gemspec packaging issue which broke the Batch UI.
|
592
|
-
|
593
|
-
1.3.0
|
594
|
-
-----------
|
595
|
-
|
596
|
-
Thanks to @jonhyman for his contributions to this Sidekiq Pro release.
|
597
|
-
|
598
|
-
This release includes new functionality based on the SCAN command newly
|
599
|
-
added to Redis 2.8. Pro still works with Redis 2.4 but some
|
600
|
-
functionality will be unavailable.
|
601
|
-
|
602
|
-
- Job Filtering in the Web UI!
|
603
|
-
You can now filter retries and scheduled jobs in the Web UI so you
|
604
|
-
only see the jobs relevant to your needs. Queues cannot be filtered;
|
605
|
-
Redis does not provide the same SCAN operation on the LIST type.
|
606
|
-
**Redis 2.8**
|
607
|
-
![Filtering](https://f.cloud.github.com/assets/2911/1619465/f47529f2-5657-11e3-8cd1-33899eb72aad.png)
|
608
|
-
- SCAN support in the Sidekiq::SortedSet API. Here's an example that
|
609
|
-
finds all jobs which contain the substring "Warehouse::OrderShip"
|
610
|
-
and deletes all matching retries. If the set is large, this API
|
611
|
-
will be **MUCH** faster than standard iteration using each.
|
612
|
-
**Redis 2.8**
|
613
|
-
```ruby
|
614
|
-
Sidekiq::RetrySet.new.scan("Warehouse::OrderShip") do |job|
|
615
|
-
job.delete
|
616
|
-
end
|
617
|
-
```
|
618
|
-
|
619
|
-
- Sidekiq::Batch#jobs now returns the set of JIDs added to the batch.
|
620
|
-
- Sidekiq::Batch#jids returns the complete set of JIDs associated with the batch.
|
621
|
-
- Sidekiq::Batch#remove\_jobs(jid, jid, ...) removes JIDs from the set, allowing early termination of jobs if they become irrelevant according to application logic.
|
622
|
-
- Sidekiq::Batch#include?(jid) allows jobs to check if they are still
|
623
|
-
relevant to a Batch and exit early if not.
|
624
|
-
- Sidekiq::SortedSet#find\_job(jid) now uses server-side Lua if possible **Redis 2.6** [jonhyman]
|
625
|
-
- The statsd integration now sets global job counts:
|
626
|
-
```ruby
|
627
|
-
jobs.count
|
628
|
-
jobs.success
|
629
|
-
jobs.failure
|
630
|
-
```
|
631
|
-
|
632
|
-
- Change shutdown logic to push leftover jobs in the private queue back
|
633
|
-
into the public queue when shutting down with Reliable Fetch. This
|
634
|
-
allows the safe decommission of a Sidekiq Pro process when autoscaling. [jonhyman]
|
635
|
-
- Add support for weighted random fetching with Reliable Fetch [jonhyman]
|
636
|
-
- Pro now requires Sidekiq 2.17.0
|
637
|
-
|
638
|
-
1.2.5
|
639
|
-
-----------
|
640
|
-
|
641
|
-
- Convert Batch UI to use Sidekiq 2.16's support for extension localization.
|
642
|
-
- Update reliable\_push to work with Sidekiq::Client refactoring in 2.16
|
643
|
-
- Pro now requires Sidekiq 2.16.0
|
644
|
-
|
645
|
-
1.2.4
|
646
|
-
-----------
|
647
|
-
|
648
|
-
- Convert Batch UI to Bootstrap 3
|
649
|
-
- Pro now requires Sidekiq 2.15.0
|
650
|
-
- Add Sidekiq::Batch::Status#delete [#1205]
|
651
|
-
|
652
|
-
1.2.3
|
653
|
-
-----------
|
654
|
-
|
655
|
-
- Pro now requires Sidekiq 2.14.0
|
656
|
-
- Fix bad exception handling in batch callbacks [#1134]
|
657
|
-
- Convert Batch UI to ERB
|
658
|
-
|
659
|
-
1.2.2
|
660
|
-
-----------
|
661
|
-
|
662
|
-
- Problem with reliable fetch which could lead to lost jobs when Sidekiq
|
663
|
-
is shut down normally. Thanks to MikaelAmborn for the report. [#1109]
|
664
|
-
|
665
|
-
1.2.1
|
666
|
-
-----------
|
667
|
-
|
668
|
-
- Forgot to push paging code necessary for `delete_job` performance.
|
669
|
-
|
670
|
-
1.2.0
|
671
|
-
-----------
|
672
|
-
|
673
|
-
- **LEAK** Fix batch key which didn't expire in Redis. Keys match
|
674
|
-
/b-[a-f0-9]{16}-pending/, e.g. "b-4f55163ddba10aa0-pending" [#1057]
|
675
|
-
- **Reliable fetch now supports multiple queues**, using the algorithm spec'd
|
676
|
-
by @jackrg [#1102]
|
677
|
-
- Fix issue with reliable\_push where it didn't return the JID for a pushed
|
678
|
-
job when sending previously cached jobs to Redis.
|
679
|
-
- Add fast Sidekiq::Queue#delete\_job(jid) API which leverages Lua so job lookup is
|
680
|
-
100% server-side. Benchmark vs Sidekiq's Job#delete API. **Redis 2.6**
|
681
|
-
|
682
|
-
```
|
683
|
-
Sidekiq Pro API
|
684
|
-
0.030000 0.020000 0.050000 ( 1.640659)
|
685
|
-
Sidekiq API
|
686
|
-
17.250000 2.220000 19.470000 ( 22.193300)
|
687
|
-
```
|
688
|
-
|
689
|
-
- Add fast Sidekiq::Queue#delete\_by\_class(klass) API to remove all
|
690
|
-
jobs of a given type. Uses server-side Lua for performance. **Redis 2.6**
|
691
|
-
|
692
|
-
1.1.0
|
693
|
-
-----------
|
694
|
-
|
695
|
-
- New `sidekiq/pro/reliable_push` which makes Sidekiq::Client resiliant
|
696
|
-
to Redis network failures. [#793]
|
697
|
-
- Move `sidekiq/reliable_fetch` to `sidekiq/pro/reliable_fetch`
|
698
|
-
|
699
|
-
|
700
|
-
1.0.0
|
701
|
-
-----------
|
702
|
-
|
703
|
-
- Sidekiq Pro changelog moved to mperham/sidekiq for public visibility.
|
704
|
-
- Add new Rack endpoint for easy polling of batch status via JavaScript. See `sidekiq/rack/batch_status`
|
705
|
-
|
706
|
-
0.9.3
|
707
|
-
-----------
|
708
|
-
|
709
|
-
- Fix bad /batches path in Web UI
|
710
|
-
- Fix Sinatra conflict with sidekiq-failures
|
711
|
-
|
712
|
-
0.9.2
|
713
|
-
-----------
|
714
|
-
|
715
|
-
- Fix issue with lifecycle notifications not firing.
|
716
|
-
|
717
|
-
0.9.1
|
718
|
-
-----------
|
719
|
-
|
720
|
-
- Update due to Sidekiq API changes.
|
721
|
-
|
722
|
-
0.9.0
|
723
|
-
-----------
|
724
|
-
|
725
|
-
- Rearchitect Sidekiq's Fetch code to support different fetch
|
726
|
-
strategies. Add a ReliableFetch strategy which works with Redis'
|
727
|
-
RPOPLPUSH to ensure we don't lose messages, even when the Sidekiq
|
728
|
-
process crashes unexpectedly. [mperham/sidekiq#607]
|
729
|
-
|
730
|
-
0.8.2
|
731
|
-
-----------
|
732
|
-
|
733
|
-
- Reimplement existing notifications using batch on_complete events.
|
734
|
-
|
735
|
-
0.8.1
|
736
|
-
-----------
|
737
|
-
|
738
|
-
- Rejigger batch callback notifications.
|
739
|
-
|
740
|
-
|
741
|
-
0.8.0
|
742
|
-
-----------
|
743
|
-
|
744
|
-
- Add new Batch 'callback' notification support, for in-process
|
745
|
-
notification.
|
746
|
-
- Symbolize option keys passed to Pony [mperham/sidekiq#603]
|
747
|
-
- Batch no longer requires the Web UI since Web UI usage is optional.
|
748
|
-
You must require is manually in your Web process:
|
749
|
-
|
750
|
-
```ruby
|
751
|
-
require 'sidekiq/web'
|
752
|
-
require 'sidekiq/batch/web'
|
753
|
-
mount Sidekiq::Web => '/sidekiq'
|
754
|
-
```
|
755
|
-
|
756
|
-
|
757
|
-
0.7.1
|
758
|
-
-----------
|
759
|
-
|
760
|
-
- Worker instances can access the associated jid and bid via simple
|
761
|
-
accessors.
|
762
|
-
- Batches can now be modified while being processed so, e.g. a batch
|
763
|
-
job can add additional jobs to its own batch.
|
764
|
-
|
765
|
-
```ruby
|
766
|
-
def perform(...)
|
767
|
-
batch = Sidekiq::Batch.new(bid) # instantiate batch associated with this job
|
768
|
-
batch.jobs do
|
769
|
-
SomeWorker.perform_async # add another job
|
770
|
-
end
|
771
|
-
end
|
772
|
-
```
|
773
|
-
|
774
|
-
- Save error backtraces in batch's failure info for display in Web UI.
|
775
|
-
- Clean up email notification a bit.
|
776
|
-
|
777
|
-
|
778
|
-
0.7.0
|
779
|
-
-----------
|
780
|
-
|
781
|
-
- Add optional batch description
|
782
|
-
- Mutable batches. Batches can now be modified to add additional jobs
|
783
|
-
at runtime. Example would be a batch job which needs to create more
|
784
|
-
jobs based on the data it is processing.
|
785
|
-
|
786
|
-
```ruby
|
787
|
-
batch = Sidekiq::Batch.new(bid)
|
788
|
-
batch.jobs do
|
789
|
-
# define more jobs here
|
790
|
-
end
|
791
|
-
```
|
792
|
-
- Fix issues with symbols vs strings in option hashes
|
793
|
-
|
794
|
-
|
795
|
-
0.6.1
|
796
|
-
-----------
|
797
|
-
|
798
|
-
- Webhook notification support
|
799
|
-
|
800
|
-
|
801
|
-
0.6
|
802
|
-
-----------
|
803
|
-
|
804
|
-
- Redis pubsub
|
805
|
-
- Email polish
|
806
|
-
|
807
|
-
|
808
|
-
0.5
|
809
|
-
-----------
|
810
|
-
|
811
|
-
- Batches
|
812
|
-
- Notifications
|
813
|
-
- Statsd middleware
|