sidekiq 6.0.7 → 6.4.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.

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