sidekiq_cleaner 5.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +61 -0
  3. data/.github/contributing.md +32 -0
  4. data/.github/issue_template.md +11 -0
  5. data/.gitignore +15 -0
  6. data/.travis.yml +11 -0
  7. data/3.0-Upgrade.md +70 -0
  8. data/4.0-Upgrade.md +53 -0
  9. data/5.0-Upgrade.md +56 -0
  10. data/COMM-LICENSE +97 -0
  11. data/Changes.md +1536 -0
  12. data/Ent-Changes.md +238 -0
  13. data/Gemfile +23 -0
  14. data/LICENSE +9 -0
  15. data/Pro-2.0-Upgrade.md +138 -0
  16. data/Pro-3.0-Upgrade.md +44 -0
  17. data/Pro-4.0-Upgrade.md +35 -0
  18. data/Pro-Changes.md +759 -0
  19. data/README.md +55 -0
  20. data/Rakefile +9 -0
  21. data/bin/sidekiq +18 -0
  22. data/bin/sidekiqctl +20 -0
  23. data/bin/sidekiqload +149 -0
  24. data/cleaner/assets/images/favicon.ico +0 -0
  25. data/cleaner/assets/images/logo.png +0 -0
  26. data/cleaner/assets/images/status.png +0 -0
  27. data/cleaner/assets/javascripts/application.js +172 -0
  28. data/cleaner/assets/javascripts/dashboard.js +315 -0
  29. data/cleaner/assets/stylesheets/application-rtl.css +246 -0
  30. data/cleaner/assets/stylesheets/application.css +1144 -0
  31. data/cleaner/assets/stylesheets/bootstrap-rtl.min.css +9 -0
  32. data/cleaner/assets/stylesheets/bootstrap.css +5 -0
  33. data/cleaner/locales/ar.yml +81 -0
  34. data/cleaner/locales/cs.yml +78 -0
  35. data/cleaner/locales/da.yml +68 -0
  36. data/cleaner/locales/de.yml +69 -0
  37. data/cleaner/locales/el.yml +68 -0
  38. data/cleaner/locales/en.yml +81 -0
  39. data/cleaner/locales/es.yml +70 -0
  40. data/cleaner/locales/fa.yml +80 -0
  41. data/cleaner/locales/fr.yml +78 -0
  42. data/cleaner/locales/he.yml +79 -0
  43. data/cleaner/locales/hi.yml +75 -0
  44. data/cleaner/locales/it.yml +69 -0
  45. data/cleaner/locales/ja.yml +80 -0
  46. data/cleaner/locales/ko.yml +68 -0
  47. data/cleaner/locales/nb.yml +77 -0
  48. data/cleaner/locales/nl.yml +68 -0
  49. data/cleaner/locales/pl.yml +59 -0
  50. data/cleaner/locales/pt-br.yml +68 -0
  51. data/cleaner/locales/pt.yml +67 -0
  52. data/cleaner/locales/ru.yml +78 -0
  53. data/cleaner/locales/sv.yml +68 -0
  54. data/cleaner/locales/ta.yml +75 -0
  55. data/cleaner/locales/uk.yml +76 -0
  56. data/cleaner/locales/ur.yml +80 -0
  57. data/cleaner/locales/zh-cn.yml +68 -0
  58. data/cleaner/locales/zh-tw.yml +68 -0
  59. data/cleaner/views/_footer.erb +20 -0
  60. data/cleaner/views/_job_info.erb +88 -0
  61. data/cleaner/views/_nav.erb +52 -0
  62. data/cleaner/views/_paging.erb +23 -0
  63. data/cleaner/views/_poll_link.erb +7 -0
  64. data/cleaner/views/_status.erb +4 -0
  65. data/cleaner/views/_summary.erb +40 -0
  66. data/cleaner/views/busy.erb +98 -0
  67. data/cleaner/views/dashboard.erb +75 -0
  68. data/cleaner/views/dead.erb +34 -0
  69. data/cleaner/views/errors.erb +84 -0
  70. data/cleaner/views/layout.erb +40 -0
  71. data/cleaner/views/morgue.erb +75 -0
  72. data/cleaner/views/queue.erb +46 -0
  73. data/cleaner/views/queues.erb +30 -0
  74. data/cleaner/views/retries.erb +80 -0
  75. data/cleaner/views/retry.erb +34 -0
  76. data/cleaner/views/scheduled.erb +54 -0
  77. data/cleaner/views/scheduled_job_info.erb +8 -0
  78. data/cleaner-stats.png +0 -0
  79. data/cleaner.png +0 -0
  80. data/code_of_conduct.md +50 -0
  81. data/lib/generators/sidekiq/templates/worker.rb.erb +9 -0
  82. data/lib/generators/sidekiq/templates/worker_spec.rb.erb +6 -0
  83. data/lib/generators/sidekiq/templates/worker_test.rb.erb +8 -0
  84. data/lib/generators/sidekiq/worker_generator.rb +49 -0
  85. data/lib/sidekiq/api.rb +940 -0
  86. data/lib/sidekiq/cleaner/action.rb +89 -0
  87. data/lib/sidekiq/cleaner/application.rb +385 -0
  88. data/lib/sidekiq/cleaner/helpers.rb +325 -0
  89. data/lib/sidekiq/cleaner/router.rb +100 -0
  90. data/lib/sidekiq/cleaner.rb +214 -0
  91. data/lib/sidekiq/cli.rb +445 -0
  92. data/lib/sidekiq/client.rb +243 -0
  93. data/lib/sidekiq/core_ext.rb +1 -0
  94. data/lib/sidekiq/ctl.rb +221 -0
  95. data/lib/sidekiq/delay.rb +42 -0
  96. data/lib/sidekiq/exception_handler.rb +29 -0
  97. data/lib/sidekiq/extensions/action_mailer.rb +57 -0
  98. data/lib/sidekiq/extensions/active_record.rb +40 -0
  99. data/lib/sidekiq/extensions/class_methods.rb +40 -0
  100. data/lib/sidekiq/extensions/generic_proxy.rb +31 -0
  101. data/lib/sidekiq/fetch.rb +81 -0
  102. data/lib/sidekiq/job_logger.rb +25 -0
  103. data/lib/sidekiq/job_retry.rb +262 -0
  104. data/lib/sidekiq/launcher.rb +173 -0
  105. data/lib/sidekiq/logging.rb +122 -0
  106. data/lib/sidekiq/manager.rb +137 -0
  107. data/lib/sidekiq/middleware/chain.rb +150 -0
  108. data/lib/sidekiq/middleware/i18n.rb +42 -0
  109. data/lib/sidekiq/middleware/server/active_record.rb +23 -0
  110. data/lib/sidekiq/paginator.rb +43 -0
  111. data/lib/sidekiq/processor.rb +279 -0
  112. data/lib/sidekiq/rails.rb +58 -0
  113. data/lib/sidekiq/redis_connection.rb +144 -0
  114. data/lib/sidekiq/scheduled.rb +174 -0
  115. data/lib/sidekiq/testing/inline.rb +29 -0
  116. data/lib/sidekiq/testing.rb +333 -0
  117. data/lib/sidekiq/util.rb +66 -0
  118. data/lib/sidekiq/version.rb +4 -0
  119. data/lib/sidekiq/worker.rb +220 -0
  120. data/lib/sidekiq.rb +237 -0
  121. data/sidekiq_cleaner.gemspec +21 -0
  122. metadata +235 -0
data/Changes.md ADDED
@@ -0,0 +1,1536 @@
1
+ # Sidekiq Changes
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
+ 5.2.7
6
+ ---------
7
+
8
+ - Fix stale `enqueued_at` when retrying [#4149]
9
+ - Move build to [Circle CI](https://circleci.com/gh/mperham/sidekiq) [#4120]
10
+
11
+ 5.2.6
12
+ ---------
13
+
14
+ - Fix edge case where a job failure during Redis outage could result in a lost job [#4141]
15
+ - Better handling of malformed job arguments in payload [#4095]
16
+ - Restore bootstap's dropdown css component [#4099, urkle]
17
+ - Display human-friendly time diff for longer queue latencies [#4111, interlinked]
18
+ - Allow `Sidekiq::Worker#set` to be chained
19
+
20
+ 5.2.5
21
+ ---------
22
+
23
+ - Fix default usage of `config/sidekiq.yml` [#4077, Tensho]
24
+
25
+ 5.2.4
26
+ ---------
27
+
28
+ - Add warnings for various deprecations and changes coming in Sidekiq 6.0.
29
+ See the 6-0 branch. [#4056]
30
+ - Various improvements to the Sidekiq test suite and coverage [#4026, #4039, Tensho]
31
+
32
+ 5.2.3
33
+ ---------
34
+
35
+ - Warning message on invalid REDIS\_PROVIDER [#3970]
36
+ - Add `sidekiqctl status` command [#4003, dzunk]
37
+ - Update elapsed time calculatons to use monotonic clock [#3999]
38
+ - Fix a few issues with mobile Web UI styling [#3973, navied]
39
+ - Jobs with `retry: false` now go through the global `death_handlers`,
40
+ meaning you can take action on failed ephemeral jobs. [#3980, Benjamin-Dobell]
41
+ - Fix race condition in defining Workers. [#3997, mattbooks]
42
+
43
+ 5.2.2
44
+ ---------
45
+
46
+ - Raise error for duplicate queue names in config to avoid unexpected fetch algorithm change [#3911]
47
+ - Fix concurrency bug on JRuby [#3958, mattbooks]
48
+ - Add "Kill All" button to the retries page [#3938]
49
+
50
+ 5.2.1
51
+ -----------
52
+
53
+ - Fix concurrent modification error during heartbeat [#3921]
54
+
55
+ 5.2.0
56
+ -----------
57
+
58
+ - **Decrease default concurrency from 25 to 10** [#3892]
59
+ - Verify connection pool sizing upon startup [#3917]
60
+ - Smoother scheduling for large Sidekiq clusters [#3889]
61
+ - Switch Sidekiq::Testing impl from alias\_method to Module#prepend, for resiliency [#3852]
62
+ - Update Sidekiq APIs to use SCAN for scalability [#3848, ffiller]
63
+ - Remove concurrent-ruby gem dependency [#3830]
64
+ - Optimize Web UI's bootstrap.css [#3914]
65
+
66
+ 5.1.3
67
+ -----------
68
+
69
+ - Fix version comparison so Ruby 2.2.10 works. [#3808, nateberkopec]
70
+
71
+ 5.1.2
72
+ -----------
73
+
74
+ - Add link to docs in Web UI footer
75
+ - Fix crash on Ctrl-C in Windows [#3775, Bernica]
76
+ - Remove `freeze` calls on String constants. This is superfluous with Ruby
77
+ 2.3+ and `frozen_string_literal: true`. [#3759]
78
+ - Fix use of AR middleware outside of Rails [#3787]
79
+ - Sidekiq::Worker `sidekiq_retry_in` block can now return nil or 0 to use
80
+ the default backoff delay [#3796, dsalahutdinov]
81
+
82
+ 5.1.1
83
+ -----------
84
+
85
+ - Fix Web UI incompatibility with Redis 3.x gem [#3749]
86
+
87
+ 5.1.0
88
+ -----------
89
+
90
+ - **NEW** Global death handlers - called when your job exhausts all
91
+ retries and dies. Now you can take action when a job fails permanently. [#3721]
92
+ - **NEW** Enable ActiveRecord query cache within jobs by default [#3718, sobrinho]
93
+ This will prevent duplicate SELECTS; cache is cleared upon any UPDATE/INSERT/DELETE.
94
+ See the issue for how to bypass the cache or disable it completely.
95
+ - Scheduler timing is now more accurate, 15 -> 5 seconds [#3734]
96
+ - Exceptions during the :startup event will now kill the process [#3717]
97
+ - Make `Sidekiq::Client.via` reentrant [#3715]
98
+ - Fix use of Sidekiq logger outside of the server process [#3714]
99
+ - Tweak `constantize` to better match Rails class lookup. [#3701, caffeinated-tech]
100
+
101
+ 5.0.5
102
+ -----------
103
+
104
+ - Update gemspec to allow newer versions of the Redis gem [#3617]
105
+ - Refactor Worker.set so it can be memoized [#3602]
106
+ - Fix display of Redis URL in web footer, broken in 5.0.3 [#3560]
107
+ - Update `Sidekiq::Job#display_args` to avoid mutation [#3621]
108
+
109
+ 5.0.4
110
+ -----------
111
+
112
+ - Fix "slow startup" performance regression from 5.0.2. [#3525]
113
+ - Allow users to disable ID generation since some redis providers disable the CLIENT command. [#3521]
114
+
115
+ 5.0.3
116
+ -----------
117
+
118
+ - Fix overriding `class_attribute` core extension from ActiveSupport with Sidekiq one [PikachuEXE, #3499]
119
+ - Allow job logger to be overridden [AlfonsoUceda, #3502]
120
+ - Set a default Redis client identifier for debugging [#3516]
121
+ - Fix "Uninitialized constant" errors on startup with the delayed extensions [#3509]
122
+
123
+ 5.0.2
124
+ -----------
125
+
126
+ - fix broken release, thanks @nateberkopec
127
+
128
+ 5.0.1
129
+ -----------
130
+
131
+ - Fix incorrect server identity when daemonizing [jwilm, #3496]
132
+ - Work around error running Web UI against Redis Cluster [#3492]
133
+ - Remove core extensions, Sidekiq is now monkeypatch-free! [#3474]
134
+ - Reimplement Web UI's HTTP\_ACCEPT\_LANGUAGE parsing because the spec is utterly
135
+ incomprehensible for various edge cases. [johanlunds, natematykiewicz, #3449]
136
+ - Update `class_attribute` core extension to avoid warnings
137
+ - Expose `job_hash_context` from `Sidekiq::Logging` to support log customization
138
+
139
+ 5.0.0
140
+ -----------
141
+
142
+ - **BREAKING CHANGE** Job dispatch was refactored for safer integration with
143
+ Rails 5. The **Logging** and **RetryJobs** server middleware were removed and
144
+ functionality integrated directly into Sidekiq::Processor. These aren't
145
+ commonly used public APIs so this shouldn't impact most users.
146
+ ```
147
+ Sidekiq::Middleware::Server::RetryJobs -> Sidekiq::JobRetry
148
+ Sidekiq::Middleware::Server::Logging -> Sidekiq::JobLogger
149
+ ```
150
+ - Quieting Sidekiq is now done via the TSTP signal, the USR1 signal is deprecated.
151
+ - The `delay` extension APIs are no longer available by default, you
152
+ must opt into them.
153
+ - The Web UI is now BiDi and can render RTL languages like Arabic, Farsi and Hebrew.
154
+ - Rails 3.2 and Ruby 2.0 and 2.1 are no longer supported.
155
+ - The `SomeWorker.set(options)` API was re-written to avoid thread-local state. [#2152]
156
+ - Sidekiq Enterprise's encrypted jobs now display "[encrypted data]" in the Web UI instead
157
+ of random hex bytes.
158
+ - Please see the [5.0 Upgrade notes](5.0-Upgrade.md) for more detail.
159
+
160
+ 4.2.10
161
+ -----------
162
+
163
+ - Scheduled jobs can now be moved directly to the Dead queue via API [#3390]
164
+ - Fix edge case leading to job duplication when using Sidekiq Pro's
165
+ reliability feature [#3388]
166
+ - Fix error class name display on retry page [#3348]
167
+ - More robust latency calculation [#3340]
168
+
169
+ 4.2.9
170
+ -----------
171
+
172
+ - Rollback [#3303] which broke Heroku Redis users [#3311]
173
+ - Add support for TSTP signal, for Sidekiq 5.0 forward compatibility. [#3302]
174
+
175
+ 4.2.8
176
+ -----------
177
+
178
+ - Fix rare edge case with Redis driver that can create duplicate jobs [#3303]
179
+ - Fix Rails 5 loading issue [#3275]
180
+ - Restore missing tooltips to timestamps in Web UI [#3310]
181
+ - Work on **Sidekiq 5.0** is now active! [#3301]
182
+
183
+ 4.2.7
184
+ -----------
185
+
186
+ - Add new integration testing to verify code loading and job execution
187
+ in development and production modes with Rails 4 and 5 [#3241]
188
+ - Fix delayed extensions in development mode [#3227, DarthSim]
189
+ - Use Worker's `retry` default if job payload does not have a retry
190
+ attribute [#3234, mlarraz]
191
+
192
+ 4.2.6
193
+ -----------
194
+
195
+ - Run Rails Executor when in production [#3221, eugeneius]
196
+
197
+ 4.2.5
198
+ -----------
199
+
200
+ - Re-enable eager loading of all code when running non-development Rails 5. [#3203]
201
+ - Better root URL handling for zany web servers [#3207]
202
+
203
+ 4.2.4
204
+ -----------
205
+
206
+ - Log errors coming from the Rails 5 reloader. [#3212, eugeneius]
207
+ - Clone job data so middleware changes don't appear in Busy tab
208
+
209
+ 4.2.3
210
+ -----------
211
+
212
+ - Disable use of Rails 5's Reloader API in non-development modes, it has proven
213
+ to be unstable under load [#3154]
214
+ - Allow disabling of Sidekiq::Web's cookie session to handle the
215
+ case where the app provides a session already [#3180, inkstak]
216
+ ```ruby
217
+ Sidekiq::Web.set :sessions, false
218
+ ```
219
+ - Fix Web UI sharding support broken in 4.2.2. [#3169]
220
+ - Fix timestamps not updating during UI polling [#3193, shaneog]
221
+ - Relax rack-protection version to >= 1.5.0
222
+ - Provide consistent interface to exception handlers, changing the structure of the context hash. [#3161]
223
+
224
+ 4.2.2
225
+ -----------
226
+
227
+ - Fix ever-increasing cookie size with nginx [#3146, cconstantine]
228
+ - Fix so Web UI works without trailing slash [#3158, timdorr]
229
+
230
+ 4.2.1
231
+ -----------
232
+
233
+ - Ensure browser does not cache JSON/AJAX responses. [#3136]
234
+ - Support old Sinatra syntax for setting config [#3139]
235
+
236
+ 4.2.0
237
+ -----------
238
+
239
+ - Enable development-mode code reloading. **With Rails 5.0+, you don't need
240
+ to restart Sidekiq to pick up your Sidekiq::Worker changes anymore!** [#2457]
241
+ - **Remove Sinatra dependency**. Sidekiq's Web UI now uses Rack directly.
242
+ Thank you to Sidekiq's newest committer, **badosu**, for writing the code
243
+ and doing a lot of testing to ensure compatibility with many different
244
+ 3rd party plugins. If your Web UI works with 4.1.4 but fails with
245
+ 4.2.0, please open an issue. [#3075]
246
+ - Allow tuning of concurrency with the `RAILS_MAX_THREADS` env var. [#2985]
247
+ This is the same var used by Puma so you can tune all of your systems
248
+ the same way:
249
+ ```sh
250
+ web: RAILS_MAX_THREADS=5 bundle exec puma ...
251
+ worker: RAILS_MAX_THREADS=10 bundle exec sidekiq ...
252
+ ```
253
+ Using `-c` or `config/sidekiq.yml` overrides this setting. I recommend
254
+ adjusting your `config/database.yml` to use it too so connections are
255
+ auto-scaled:
256
+ ```yaml
257
+ pool: <%= ENV['RAILS_MAX_THREADS'] || 5 %>
258
+ ```
259
+
260
+ 4.1.4
261
+ -----------
262
+
263
+ - Unlock Sinatra so a Rails 5.0 compatible version may be used [#3048]
264
+ - Fix race condition on startup with JRuby [#3043]
265
+
266
+
267
+ 4.1.3
268
+ -----------
269
+
270
+ - Please note the Redis 3.3.0 gem has a [memory leak](https://github.com/redis/redis-rb/issues/612),
271
+ Redis 3.2.2 is recommended until that issue is fixed.
272
+ - Sinatra 1.4.x is now a required dependency, avoiding cryptic errors
273
+ and old bugs due to people not upgrading Sinatra for years. [#3042]
274
+ - Fixed race condition in heartbeat which could rarely lead to lingering
275
+ processes on the Busy tab. [#2982]
276
+ ```ruby
277
+ # To clean up lingering processes, modify this as necessary to connect to your Redis.
278
+ # After 60 seconds, lingering processes should disappear from the Busy page.
279
+
280
+ require 'redis'
281
+ r = Redis.new(url: "redis://localhost:6379/0")
282
+ # uncomment if you need a namespace
283
+ #require 'redis-namespace'
284
+ #r = Redis::Namespace.new("foo", r)
285
+ r.smembers("processes").each do |pro|
286
+ r.expire(pro, 60)
287
+ r.expire("#{pro}:workers", 60)
288
+ end
289
+ ```
290
+
291
+
292
+ 4.1.2
293
+ -----------
294
+
295
+ - Fix Redis data leak with worker data when a busy Sidekiq process
296
+ crashes. You can find and expire leaked data in Redis with this
297
+ script:
298
+ ```bash
299
+ $ redis-cli keys "*:workers" | while read LINE ; do TTL=`redis-cli expire "$LINE" 60`; echo "$LINE"; done;
300
+ ```
301
+ Please note that `keys` can be dangerous to run on a large, busy Redis. Caveat runner.
302
+ - Freeze all string literals with Ruby 2.3. [#2741]
303
+ - Client middleware can now stop bulk job push. [#2887]
304
+
305
+ 4.1.1
306
+ -----------
307
+
308
+ - Much better behavior when Redis disappears and comes back. [#2866]
309
+ - Update FR locale [dbachet]
310
+ - Don't fill logfile in case of Redis downtime [#2860]
311
+ - Allow definition of a global retries_exhausted handler. [#2807]
312
+ ```ruby
313
+ Sidekiq.configure_server do |config|
314
+ config.default_retries_exhausted = -> (job, ex) do
315
+ Sidekiq.logger.info "#{job['class']} job is now dead"
316
+ end
317
+ end
318
+ ```
319
+
320
+ 4.1.0
321
+ -----------
322
+
323
+ - Tag quiet processes in the Web UI [#2757, jcarlson]
324
+ - Pass last exception to sidekiq\_retries\_exhausted block [#2787, Nowaker]
325
+ ```ruby
326
+ class MyWorker
327
+ include Sidekiq::Worker
328
+ sidekiq_retries_exhausted do |job, exception|
329
+ end
330
+ end
331
+ ```
332
+ - Add native support for ActiveJob's `set(options)` method allowing
333
+ you to override worker options dynamically. This should make it
334
+ even easier to switch between ActiveJob and Sidekiq's native APIs [#2780]
335
+ ```ruby
336
+ class MyWorker
337
+ include Sidekiq::Worker
338
+ sidekiq_options queue: 'default', retry: true
339
+
340
+ def perform(*args)
341
+ # do something
342
+ end
343
+ end
344
+
345
+ MyWorker.set(queue: 'high', retry: false).perform_async(1)
346
+ ```
347
+
348
+ 4.0.2
349
+ -----------
350
+
351
+ - Better Japanese translations
352
+ - Remove `json` gem dependency from gemspec. [#2743]
353
+ - There's a new testing API based off the `Sidekiq::Queues` namespace. All
354
+ assertions made against the Worker class still work as expected.
355
+ [#2676, brandonhilkert]
356
+ ```ruby
357
+ assert_equal 0, Sidekiq::Queues["default"].size
358
+ HardWorker.perform_async("log")
359
+ assert_equal 1, Sidekiq::Queues["default"].size
360
+ assert_equal "log", Sidekiq::Queues["default"].first['args'][0]
361
+ Sidekiq::Queues.clear_all
362
+ ```
363
+
364
+ 4.0.1
365
+ -----------
366
+
367
+ - Yank new queue-based testing API [#2663]
368
+ - Fix invalid constant reference in heartbeat
369
+
370
+ 4.0.0
371
+ -----------
372
+
373
+ - Sidekiq's internals have been completely overhauled for performance
374
+ and to remove dependencies. This has resulted in major speedups, as
375
+ [detailed on my blog](http://www.mikeperham.com/2015/10/14/optimizing-sidekiq/).
376
+ - See the [4.0 upgrade notes](4.0-Upgrade.md) for more detail.
377
+
378
+ 3.5.4
379
+ -----------
380
+
381
+ - Ensure exception message is a string [#2707]
382
+ - Revert racy Process.kill usage in sidekiqctl
383
+
384
+ 3.5.3
385
+ -----------
386
+
387
+ - Adjust shutdown event to run in parallel with the rest of system shutdown. [#2635]
388
+
389
+ 3.5.2
390
+ -----------
391
+
392
+ - **Sidekiq 3 is now in maintenance mode**, only major bugs will be fixed.
393
+ - The exception triggering a retry is now passed into `sidekiq_retry_in`,
394
+ allowing you to retry more frequently for certain types of errors.
395
+ [#2619, kreynolds]
396
+ ```ruby
397
+ sidekiq_retry_in do |count, ex|
398
+ case ex
399
+ when RuntimeError
400
+ 5 * count
401
+ else
402
+ 10 * count
403
+ end
404
+ end
405
+ ```
406
+
407
+ 3.5.1
408
+ -----------
409
+
410
+ - **FIX MEMORY LEAK** Under rare conditions, threads may leak [#2598, gazay]
411
+ - Add Ukrainian locale [#2561, elrakita]
412
+ - Disconnect and retry Redis operations if we see a READONLY error [#2550]
413
+ - Add server middleware testing harness; see [wiki](https://github.com/mperham/sidekiq/wiki/Testing#testing-server-middleware) [#2534, ryansch]
414
+
415
+ 3.5.0
416
+ -----------
417
+
418
+ - Polished new banner! [#2522, firedev]
419
+ - Upgrade to Celluloid 0.17. [#2420, digitalextremist]
420
+ - Activate sessions in Sinatra for CSRF protection, requires Rails
421
+ monkeypatch due to rails/rails#15843. [#2460, jc00ke]
422
+
423
+ 3.4.2
424
+ -----------
425
+
426
+ - Don't allow `Sidekiq::Worker` in ActiveJob::Base classes. [#2424]
427
+ - Safer display of job data in Web UI [#2405]
428
+ - Fix CSRF vulnerability in Web UI, thanks to Egor Homakov for
429
+ reporting. [#2422] If you are running the Web UI as a standalone Rack app,
430
+ ensure you have a [session middleware
431
+ configured](https://github.com/mperham/sidekiq/wiki/Monitoring#standalone):
432
+ ```ruby
433
+ use Rack::Session::Cookie, :secret => "some unique secret string here"
434
+ ```
435
+
436
+ 3.4.1
437
+ -----------
438
+
439
+ - Lock to Celluloid 0.16
440
+
441
+
442
+ 3.4.0
443
+ -----------
444
+
445
+ - Set a `created_at` attribute when jobs are created, set `enqueued_at` only
446
+ when they go into a queue. Fixes invalid latency calculations with scheduled jobs.
447
+ [#2373, mrsimo]
448
+ - Don't log timestamp on Heroku [#2343]
449
+ - Run `shutdown` event handlers in reverse order of definition [#2374]
450
+ - Rename and rework `poll_interval` to be simpler, more predictable [#2317, cainlevy]
451
+ The new setting is `average_scheduled_poll_interval`. To configure
452
+ Sidekiq to look for scheduled jobs every 5 seconds, just set it to 5.
453
+ ```ruby
454
+ Sidekiq.configure_server do |config|
455
+ config.average_scheduled_poll_interval = 5
456
+ end
457
+ ```
458
+
459
+ 3.3.4
460
+ -----------
461
+
462
+ - **Improved ActiveJob integration** - Web UI now shows ActiveJobs in a
463
+ nicer format and job logging shows the actual class name, requires
464
+ Rails 4.2.2+ [#2248, #2259]
465
+ - Add Sidekiq::Process#dump\_threads API to trigger TTIN output [#2247]
466
+ - Web UI polling now uses Ajax to avoid page reload [#2266, davydovanton]
467
+ - Several Web UI styling improvements [davydovanton]
468
+ - Add Tamil, Hindi translations for Web UI [ferdinandrosario, tejasbubane]
469
+ - Fix Web UI to work with country-specific locales [#2243]
470
+ - Handle circular error causes [#2285, eugenk]
471
+
472
+ 3.3.3
473
+ -----------
474
+
475
+ - Fix crash on exit when Redis is down [#2235]
476
+ - Fix duplicate logging on startup
477
+ - Undeprecate delay extension for ActionMailer 4.2+ . [#2186]
478
+
479
+ 3.3.2
480
+ -----------
481
+
482
+ - Add Sidekiq::Stats#queues back
483
+ - Allows configuration of dead job set size and timeout [#2173, jonhyman]
484
+ - Refactor scheduler enqueuing so Sidekiq Pro can override it. [#2159]
485
+
486
+ 3.3.1
487
+ -----------
488
+
489
+ - Dumb down ActionMailer integration so it tries to deliver if possible [#2149]
490
+ - Stringify Sidekiq.default\_worker\_options's keys [#2126]
491
+ - Add random integer to process identity [#2113, michaeldiscala]
492
+ - Log Sidekiq Pro's Batch ID if available [#2076]
493
+ - Refactor Processor Redis usage to avoid redis/redis-rb#490 [#2094]
494
+ - Move /dashboard/stats to /stats. Add /stats/queues. [moserke, #2099]
495
+ - Add processes count to /stats [ismaelga, #2141]
496
+ - Greatly improve speed of Sidekiq::Stats [ismaelga, #2142]
497
+ - Add better usage text for `sidekiqctl`.
498
+ - `Sidekiq::Logging.with_context` is now a stack so you can set your
499
+ own job context for logging purposes [grosser, #2110]
500
+ - Remove usage of Google Fonts in Web UI so it loads in China [#2144]
501
+
502
+ 3.3.0
503
+ -----------
504
+
505
+ - Upgrade to Celluloid 0.16 [#2056]
506
+ - Fix typo for generator test file name [dlackty, #2016]
507
+ - Add Sidekiq::Middleware::Chain#prepend [seuros, #2029]
508
+
509
+ 3.2.6
510
+ -----------
511
+
512
+ - Deprecate delay extension for ActionMailer 4.2+ . [seuros, #1933]
513
+ - Poll interval tuning now accounts for dead processes [epchris, #1984]
514
+ - Add non-production environment to Web UI page titles [JacobEvelyn, #2004]
515
+
516
+ 3.2.5
517
+ -----------
518
+
519
+ - Lock Celluloid to 0.15.2 due to bugs in 0.16.0. This prevents the
520
+ "hang on shutdown" problem with Celluloid 0.16.0.
521
+
522
+ 3.2.4
523
+ -----------
524
+
525
+ - Fix issue preventing ActionMailer sends working in some cases with
526
+ Rails 4. [pbhogan, #1923]
527
+
528
+ 3.2.3
529
+ -----------
530
+
531
+ - Clean invalid bytes from error message before converting to JSON (requires Ruby 2.1+) [#1705]
532
+ - Add queues list for each process to the Busy page. [davetoxa, #1897]
533
+ - Fix for crash caused by empty config file. [jordan0day, #1901]
534
+ - Add Rails Worker generator, `rails g sidekiq:worker User` will create `app/workers/user_worker.rb`. [seuros, #1909]
535
+ - Fix Web UI rendering with huge job arguments [jhass, #1918]
536
+ - Minor refactoring of Sidekiq::Client internals, for Sidekiq Pro. [#1919]
537
+
538
+ 3.2.2
539
+ -----------
540
+
541
+ - **This version of Sidekiq will no longer start on Ruby 1.9.** Sidekiq
542
+ 3 does not support MRI 1.9 but we've allowed it to run before now.
543
+ - Fix issue which could cause Sidekiq workers to disappear from the Busy
544
+ tab while still being active [#1884]
545
+ - Add "Back to App" button in Web UI. You can set the button link via
546
+ `Sidekiq::Web.app_url = 'http://www.mysite.com'` [#1875, seuros]
547
+ - Add process tag (`-g tag`) to the Busy page so you can differentiate processes at a glance. [seuros, #1878]
548
+ - Add "Kill" button to move retries directly to the DJQ so they don't retry. [seuros, #1867]
549
+
550
+ 3.2.1
551
+ -----------
552
+
553
+ - Revert eager loading change for Rails 3.x apps, as it broke a few edge
554
+ cases.
555
+
556
+ 3.2.0
557
+ -----------
558
+
559
+ - **Fix issue which caused duplicate job execution in Rails 3.x**
560
+ This issue is caused by [improper exception handling in ActiveRecord](https://github.com/rails/rails/blob/3-2-stable/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb#L281) which changes Sidekiq's Shutdown exception into a database
561
+ error, making Sidekiq think the job needs to be retried. **The fix requires Ruby 2.1**. [#1805]
562
+ - Update how Sidekiq eager loads Rails application code [#1791, jonleighton]
563
+ - Change logging timestamp to show milliseconds.
564
+ - Reverse sorting of Dead tab so newer jobs are listed first [#1802]
565
+
566
+ 3.1.4
567
+ -----------
568
+
569
+ - Happy π release!
570
+ - Self-tuning Scheduler polling, we use heartbeat info to better tune poll\_interval [#1630]
571
+ - Remove all table column width rules, hopefully get better column formatting [#1747]
572
+ - Handle edge case where YAML can't be decoded in dev mode [#1761]
573
+ - Fix lingering jobs in Busy page on Heroku [#1764]
574
+
575
+ 3.1.3
576
+ -----------
577
+
578
+ - Use ENV['DYNO'] on Heroku for hostname display, rather than an ugly UUID. [#1742]
579
+ - Show per-process labels on the Busy page, for feature tagging [#1673]
580
+
581
+
582
+ 3.1.2
583
+ -----------
584
+
585
+ - Suitably chastised, @mperham reverts the Bundler change.
586
+
587
+
588
+ 3.1.1
589
+ -----------
590
+
591
+ - Sidekiq::CLI now runs `Bundler.require(:default, environment)` to boot all gems
592
+ before loading any app code.
593
+ - Sort queues by name in Web UI [#1734]
594
+
595
+
596
+ 3.1.0
597
+ -----------
598
+
599
+ - New **remote control** feature: you can remotely trigger Sidekiq to quiet
600
+ or terminate via API, without signals. This is most useful on JRuby
601
+ or Heroku which does not support the USR1 'quiet' signal. Now you can
602
+ run a rake task like this at the start of your deploy to quiet your
603
+ set of Sidekiq processes. [#1703]
604
+ ```ruby
605
+ namespace :sidekiq do
606
+ task :quiet => :environment do
607
+ Sidekiq::ProcessSet.new.each(&:quiet!)
608
+ end
609
+ end
610
+ ```
611
+ - The Web UI can use the API to quiet or stop all processes via the Busy page.
612
+ - The Web UI understands and hides the `Sidekiq::Extensions::Delay*`
613
+ classes, instead showing `Class.method` as the Job. [#1718]
614
+ - Polish the Dashboard graphs a bit, update Rickshaw [brandonhilkert, #1725]
615
+ - The poll interval is now configurable in the Web UI [madebydna, #1713]
616
+ - Delay extensions can be removed so they don't conflict with
617
+ DelayedJob: put `Sidekiq.remove_delay!` in your initializer. [devaroop, #1674]
618
+
619
+
620
+ 3.0.2
621
+ -----------
622
+
623
+ - Revert gemfile requirement of Ruby 2.0. JRuby 1.7 calls itself Ruby
624
+ 1.9.3 and broke with this requirement.
625
+
626
+ 3.0.1
627
+ -----------
628
+
629
+ - Revert pidfile behavior from 2.17.5: Sidekiq will no longer remove its own pidfile
630
+ as this is a race condition when restarting. [#1470, #1677]
631
+ - Show warning on the Queues page if a queue is paused [#1672]
632
+ - Only activate the ActiveRecord middleware if ActiveRecord::Base is defined on boot. [#1666]
633
+ - Add ability to disable jobs going to the DJQ with the `dead` option.
634
+ ```ruby
635
+ sidekiq_options :dead => false, :retry => 5
636
+ ```
637
+ - Minor fixes
638
+
639
+
640
+ 3.0.0
641
+ -----------
642
+
643
+ Please see [3.0-Upgrade.md](3.0-Upgrade.md) for more comprehensive upgrade notes.
644
+
645
+ - **Dead Job Queue** - jobs which run out of retries are now moved to a dead
646
+ job queue. These jobs must be retried manually or they will expire
647
+ after 6 months or 10,000 jobs. The Web UI contains a "Dead" tab
648
+ exposing these jobs. Use `sidekiq_options :retry => false` if you
649
+ don't wish jobs to be retried or put in the DJQ. Use
650
+ `sidekiq_options :retry => 0` if you don't want jobs to retry but go
651
+ straight to the DJQ.
652
+ - **Process Lifecycle Events** - you can now register blocks to run at
653
+ certain points during the Sidekiq process lifecycle: startup, quiet and
654
+ shutdown.
655
+ ```ruby
656
+ Sidekiq.configure_server do |config|
657
+ config.on(:startup) do
658
+ # do something
659
+ end
660
+ end
661
+ ```
662
+ - **Global Error Handlers** - blocks of code which handle errors that
663
+ occur anywhere within Sidekiq, not just within middleware.
664
+ ```ruby
665
+ Sidekiq.configure_server do |config|
666
+ config.error_handlers << proc {|ex,ctx| ... }
667
+ end
668
+ ```
669
+ - **Process Heartbeat** - each Sidekiq process will ping Redis every 5
670
+ seconds to give a summary of the Sidekiq population at work.
671
+ - The Workers tab is now renamed to Busy and contains a list of live
672
+ Sidekiq processes and jobs in progress based on the heartbeat.
673
+ - **Shardable Client** - Sidekiq::Client instances can use a custom
674
+ Redis connection pool, allowing very large Sidekiq installations to scale by
675
+ sharding: sending different jobs to different Redis instances.
676
+ ```ruby
677
+ client = Sidekiq::Client.new(ConnectionPool.new { Redis.new })
678
+ client.push(...)
679
+ ```
680
+ ```ruby
681
+ Sidekiq::Client.via(ConnectionPool.new { Redis.new }) do
682
+ FooWorker.perform_async
683
+ BarWorker.perform_async
684
+ end
685
+ ```
686
+ **Sharding support does require a breaking change to client-side
687
+ middleware, see 3.0-Upgrade.md.**
688
+ - New Chinese, Greek, Swedish and Czech translations for the Web UI.
689
+ - Updated most languages translations for the new UI features.
690
+ - **Remove official Capistrano integration** - this integration has been
691
+ moved into the [capistrano-sidekiq](https://github.com/seuros/capistrano-sidekiq) gem.
692
+ - **Remove official support for MRI 1.9** - Things still might work but
693
+ I no longer actively test on it.
694
+ - **Remove built-in support for Redis-to-Go**.
695
+ Heroku users: `heroku config:set REDIS_PROVIDER=REDISTOGO_URL`
696
+ - **Remove built-in error integration for Airbrake, Honeybadger, ExceptionNotifier and Exceptional**.
697
+ Each error gem should provide its own Sidekiq integration. Update your error gem to the latest
698
+ version to pick up Sidekiq support.
699
+ - Upgrade to connection\_pool 2.0 which now creates connections lazily.
700
+ - Remove deprecated Sidekiq::Client.registered\_\* APIs
701
+ - Remove deprecated support for the old Sidekiq::Worker#retries\_exhausted method.
702
+ - Removed 'sidekiq/yaml\_patch', this was never documented or recommended.
703
+ - Removed --profile option, #1592
704
+ - Remove usage of the term 'Worker' in the UI for clarity. Users would call both threads and
705
+ processes 'workers'. Instead, use "Thread", "Process" or "Job".
706
+
707
+ 2.17.7
708
+ -----------
709
+
710
+ - Auto-prune jobs older than one hour from the Workers page [#1508]
711
+ - Add Sidekiq::Workers#prune which can perform the auto-pruning.
712
+ - Fix issue where a job could be lost when an exception occurs updating
713
+ Redis stats before the job executes [#1511]
714
+
715
+ 2.17.6
716
+ -----------
717
+
718
+ - Fix capistrano integration due to missing pidfile. [#1490]
719
+
720
+ 2.17.5
721
+ -----------
722
+
723
+ - Automatically use the config file found at `config/sidekiq.yml`, if not passed `-C`. [#1481]
724
+ - Store 'retried\_at' and 'failed\_at' timestamps as Floats, not Strings. [#1473]
725
+ - A `USR2` signal will now reopen _all_ logs, using IO#reopen. Thus, instead of creating a new Logger object,
726
+ Sidekiq will now just update the existing Logger's file descriptor [#1163].
727
+ - Remove pidfile when shutting down if started with `-P` [#1470]
728
+
729
+ 2.17.4
730
+ -----------
731
+
732
+ - Fix JID support in inline testing, #1454
733
+ - Polish worker arguments display in UI, #1453
734
+ - Marshal arguments fully to avoid worker mutation, #1452
735
+ - Support reverse paging sorted sets, #1098
736
+
737
+
738
+ 2.17.3
739
+ -----------
740
+
741
+ - Synchronously terminates the poller and fetcher to fix a race condition in bulk requeue during shutdown [#1406]
742
+
743
+ 2.17.2
744
+ -----------
745
+
746
+ - Fix bug where strictly prioritized queues might be processed out of
747
+ order [#1408]. A side effect of this change is that it breaks a queue
748
+ declaration syntax that worked, although only because of a bug—it was
749
+ never intended to work and never supported. If you were declaring your
750
+ queues as a comma-separated list, e.g. `sidekiq -q critical,default,low`,
751
+ you must now use the `-q` flag before each queue, e.g.
752
+ `sidekiq -q critical -q default -q low`.
753
+
754
+ 2.17.1
755
+ -----------
756
+
757
+ - Expose `delay` extension as `sidekiq_delay` also. This allows you to
758
+ run Delayed::Job and Sidekiq in the same process, selectively porting
759
+ `delay` calls to `sidekiq_delay`. You just need to ensure that
760
+ Sidekiq is required **before** Delayed::Job in your Gemfile. [#1393]
761
+ - Bump redis client required version to 3.0.6
762
+ - Minor CSS fixes for Web UI
763
+
764
+ 2.17.0
765
+ -----------
766
+
767
+ - Change `Sidekiq::Client#push_bulk` to return an array of pushed `jid`s. [#1315, barelyknown]
768
+ - Web UI refactoring to use more API internally (yummy dogfood!)
769
+ - Much faster Sidekiq::Job#delete performance for larger queue sizes
770
+ - Further capistrano 3 fixes
771
+ - Many misc minor fixes
772
+
773
+ 2.16.1
774
+ -----------
775
+
776
+ - Revert usage of `resolv-replace`. MRI's native DNS lookup releases the GIL.
777
+ - Fix several Capistrano 3 issues
778
+ - Escaping dynamic data like job args and error messages in Sidekiq Web UI. [#1299, lian]
779
+
780
+ 2.16.0
781
+ -----------
782
+
783
+ - Deprecate `Sidekiq::Client.registered_workers` and `Sidekiq::Client.registered_queues`
784
+ - Refactor Sidekiq::Client to be instance-based [#1279]
785
+ - Pass all Redis options to the Redis driver so Unix sockets
786
+ can be fully configured. [#1270, salimane]
787
+ - Allow sidekiq-web extensions to add locale paths so extensions
788
+ can be localized. [#1261, ondrejbartas]
789
+ - Capistrano 3 support [#1254, phallstrom]
790
+ - Use Ruby's `resolv-replace` to enable pure Ruby DNS lookups.
791
+ This ensures that any DNS resolution that takes place in worker
792
+ threads won't lock up the entire VM on MRI. [#1258]
793
+
794
+ 2.15.2
795
+ -----------
796
+
797
+ - Iterating over Sidekiq::Queue and Sidekiq::SortedSet will now work as
798
+ intended when jobs are deleted [#866, aackerman]
799
+ - A few more minor Web UI fixes [#1247]
800
+
801
+ 2.15.1
802
+ -----------
803
+
804
+ - Fix several Web UI issues with the Bootstrap 3 upgrade.
805
+
806
+ 2.15.0
807
+ -----------
808
+
809
+ - The Core Sidekiq actors are now monitored. If any crash, the
810
+ Sidekiq process logs the error and exits immediately. This is to
811
+ help prevent "stuck" Sidekiq processes which are running but don't
812
+ appear to be doing any work. [#1194]
813
+ - Sidekiq's testing behavior is now dynamic. You can choose between
814
+ `inline` and `fake` behavior in your tests. See
815
+ [Testing](https://github.com/mperham/sidekiq/wiki/Testing) for detail. [#1193]
816
+ - The Retries table has a new column for the error message.
817
+ - The Web UI topbar now contains the status and live poll button.
818
+ - Orphaned worker records are now auto-vacuumed when you visit the
819
+ Workers page in the Web UI.
820
+ - Sidekiq.default\_worker\_options allows you to configure default
821
+ options for all Sidekiq worker types.
822
+
823
+ ```ruby
824
+ Sidekiq.default_worker_options = { 'queue' => 'default', 'backtrace' => true }
825
+ ```
826
+ - Added two Sidekiq::Client class methods for compatibility with resque-scheduler:
827
+ `enqueue_to_in` and `enqueue_in` [#1212]
828
+ - Upgrade Web UI to Bootstrap 3.0. [#1211, jeffboek]
829
+
830
+ 2.14.1
831
+ -----------
832
+
833
+ - Fix misc Web UI issues due to ERB conversion.
834
+ - Bump redis-namespace version due to security issue.
835
+
836
+ 2.14.0
837
+ -----------
838
+
839
+ - Removed slim gem dependency, Web UI now uses ERB [Locke23rus, #1120]
840
+ - Fix more race conditions in Web UI actions
841
+ - Don't reset Job enqueued\_at when retrying
842
+ - Timestamp tooltips in the Web UI should use UTC
843
+ - Fix invalid usage of handle\_exception causing issues in Airbrake
844
+ [#1134]
845
+
846
+
847
+ 2.13.1
848
+ -----------
849
+
850
+ - Make Sidekiq::Middleware::Chain Enumerable
851
+ - Make summary bar and graphs responsive [manishval, #1025]
852
+ - Adds a job status page for scheduled jobs [jonhyman]
853
+ - Handle race condition in retrying and deleting jobs in the Web UI
854
+ - The Web UI relative times are now i18n. [MadRabbit, #1088]
855
+ - Allow for default number of retry attempts to be set for
856
+ `Sidekiq::Middleware::Server::RetryJobs` middleware. [czarneckid] [#1091]
857
+
858
+ ```ruby
859
+ Sidekiq.configure_server do |config|
860
+ config.server_middleware do |chain|
861
+ chain.add Sidekiq::Middleware::Server::RetryJobs, :max_retries => 10
862
+ end
863
+ end
864
+ ```
865
+
866
+
867
+ 2.13.0
868
+ -----------
869
+
870
+ - Adding button to move scheduled job to main queue [guiceolin, #1020]
871
+ - fix i18n support resetting saved locale when job is retried [#1011]
872
+ - log rotation via USR2 now closes the old logger [#1008]
873
+ - Add ability to customize retry schedule, like so [jmazzi, #1027]
874
+
875
+ ```ruby
876
+ class MyWorker
877
+ include Sidekiq::Worker
878
+ sidekiq_retry_in { |count| count * 2 }
879
+ end
880
+ ```
881
+ - Redesign Worker#retries\_exhausted callback to use same form as above [jmazzi, #1030]
882
+
883
+ ```ruby
884
+ class MyWorker
885
+ include Sidekiq::Worker
886
+ sidekiq_retries_exhausted do |msg|
887
+ Rails.logger.error "Failed to process #{msg['class']} with args: #{msg['args']}"
888
+ end
889
+ end
890
+ ```
891
+
892
+ 2.12.4
893
+ -----------
894
+
895
+ - Fix error in previous release which crashed the Manager when a
896
+ Processor died.
897
+
898
+ 2.12.3
899
+ -----------
900
+
901
+ - Revert back to Celluloid's TaskFiber for job processing which has proven to be more
902
+ stable than TaskThread. [#985]
903
+ - Avoid possible lockup during hard shutdown [#997]
904
+
905
+ At this point, if you are experiencing stability issues with Sidekiq in
906
+ Ruby 1.9, please try Ruby 2.0. It seems to be more stable.
907
+
908
+ 2.12.2
909
+ -----------
910
+
911
+ - Relax slim version requirement to >= 1.1.0
912
+ - Refactor historical stats to use TTL, not explicit cleanup. [grosser, #971]
913
+
914
+ 2.12.1
915
+ -----------
916
+
917
+ - Force Celluloid 0.14.1 as 0.14.0 has a serious bug. [#954]
918
+ - Scheduled and Retry jobs now use Sidekiq::Client to push
919
+ jobs onto the queue, so they use client middleware. [dimko, #948]
920
+ - Record the timestamp when jobs are enqueued. Add
921
+ Sidekiq::Job#enqueued\_at to query the time. [mariovisic, #944]
922
+ - Add Sidekiq::Queue#latency - calculates diff between now and
923
+ enqueued\_at for the oldest job in the queue.
924
+ - Add testing method `perform_one` that dequeues and performs a single job.
925
+ This is mainly to aid testing jobs that spawn other jobs. [fumin, #963]
926
+
927
+ 2.12.0
928
+ -----------
929
+
930
+ - Upgrade to Celluloid 0.14, remove the use of Celluloid's thread
931
+ pool. This should halve the number of threads in each Sidekiq
932
+ process, thus requiring less resources. [#919]
933
+ - Abstract Celluloid usage to Sidekiq::Actor for testing purposes.
934
+ - Better handling for Redis downtime when fetching jobs and shutting
935
+ down, don't print exceptions every second and print success message
936
+ when Redis is back.
937
+ - Fix unclean shutdown leading to duplicate jobs [#897]
938
+ - Add Korean locale [#890]
939
+ - Upgrade test suite to Minitest 5
940
+ - Remove usage of `multi_json` as `json` is now robust on all platforms.
941
+
942
+ 2.11.2
943
+ -----------
944
+
945
+ - Fix Web UI when used without Rails [#886]
946
+ - Add Sidekiq::Stats#reset [#349]
947
+ - Add Norwegian locale.
948
+ - Updates for the JA locale.
949
+
950
+ 2.11.1
951
+ -----------
952
+
953
+ - Fix timeout warning.
954
+ - Add Dutch web UI locale.
955
+
956
+ 2.11.0
957
+ -----------
958
+
959
+ - Upgrade to Celluloid 0.13. [#834]
960
+ - Remove **timeout** support from `sidekiq_options`. Ruby's timeout
961
+ is inherently unsafe in a multi-threaded application and was causing
962
+ stability problems for many. See http://bit.ly/OtYpK
963
+ - Add Japanese locale for Web UI [#868]
964
+ - Fix a few issues with Web UI i18n.
965
+
966
+ 2.10.1
967
+ -----------
968
+
969
+ - Remove need for the i18n gem. (brandonhilkert)
970
+ - Improve redis connection info logging on startup for debugging
971
+ purposes [#858]
972
+ - Revert sinatra/slim as runtime dependencies
973
+ - Add `find_job` method to sidekiq/api
974
+
975
+
976
+ 2.10.0
977
+ -----------
978
+
979
+ - Refactor algorithm for putting scheduled jobs onto the queue [#843]
980
+ - Fix scheduler thread dying due to incorrect error handling [#839]
981
+ - Fix issue which left stale workers if Sidekiq wasn't shutdown while
982
+ quiet. [#840]
983
+ - I18n for web UI. Please submit translations of `web/locales/en.yml` for
984
+ your own language. [#811]
985
+ - 'sinatra', 'slim' and 'i18n' are now gem dependencies for Sidekiq.
986
+
987
+
988
+ 2.9.0
989
+ -----------
990
+
991
+ - Update 'sidekiq/testing' to work with any Sidekiq::Client call. It
992
+ also serializes the arguments as using Redis would. [#713]
993
+ - Raise a Sidekiq::Shutdown error within workers which don't finish within the hard
994
+ timeout. This is to prevent unwanted database transaction commits. [#377]
995
+ - Lazy load Redis connection pool, you no longer need to specify
996
+ anything in Passenger or Unicorn's after_fork callback [#794]
997
+ - Add optional Worker#retries_exhausted hook after max retries failed. [jkassemi, #780]
998
+ - Fix bug in pagination link to last page [pitr, #774]
999
+ - Upstart scripts for multiple Sidekiq instances [dariocravero, #763]
1000
+ - Use select via pipes instead of poll to catch signals [mrnugget, #761]
1001
+
1002
+ 2.8.0
1003
+ -----------
1004
+
1005
+ - I18n support! Sidekiq can optionally save and restore the Rails locale
1006
+ so it will be properly set when your jobs execute. Just include
1007
+ `require 'sidekiq/middleware/i18n'` in your sidekiq initializer. [#750]
1008
+ - Fix bug which could lose messages when using namespaces and the message
1009
+ needs to be requeued in Redis. [#744]
1010
+ - Refactor Redis namespace support [#747]. The redis namespace can no longer be
1011
+ passed via the config file, the only supported way is via Ruby in your
1012
+ initializer:
1013
+
1014
+ ```ruby
1015
+ sidekiq_redis = { :url => 'redis://localhost:3679', :namespace => 'foo' }
1016
+ Sidekiq.configure_server { |config| config.redis = sidekiq_redis }
1017
+ Sidekiq.configure_client { |config| config.redis = sidekiq_redis }
1018
+ ```
1019
+
1020
+ A warning is printed out to the log if a namespace is found in your sidekiq.yml.
1021
+
1022
+
1023
+ 2.7.5
1024
+ -----------
1025
+
1026
+ - Capistrano no longer uses daemonization in order to work with JRuby [#719]
1027
+ - Refactor signal handling to work on Ruby 2.0 [#728, #730]
1028
+ - Fix dashboard refresh URL [#732]
1029
+
1030
+ 2.7.4
1031
+ -----------
1032
+
1033
+ - Fixed daemonization, was broken by some internal refactoring in 2.7.3 [#727]
1034
+
1035
+ 2.7.3
1036
+ -----------
1037
+
1038
+ - Real-time dashboard is now the default web page
1039
+ - Make config file optional for capistrano
1040
+ - Fix Retry All button in the Web UI
1041
+
1042
+ 2.7.2
1043
+ -----------
1044
+
1045
+ - Remove gem signing infrastructure. It was causing Sidekiq to break
1046
+ when used via git in Bundler. This is why we can't have nice things. [#688]
1047
+
1048
+
1049
+ 2.7.1
1050
+ -----------
1051
+
1052
+ - Fix issue with hard shutdown [#680]
1053
+
1054
+
1055
+ 2.7.0
1056
+ -----------
1057
+
1058
+ - Add -d daemonize flag, capistrano recipe has been updated to use it [#662]
1059
+ - Support profiling via `ruby-prof` with -p. When Sidekiq is stopped
1060
+ via Ctrl-C, it will output `profile.html`. You must add `gem 'ruby-prof'` to your Gemfile for it to work.
1061
+ - Dynamically update Redis stats on dashboard [brandonhilkert]
1062
+ - Add Sidekiq::Workers API giving programmatic access to the current
1063
+ set of active workers.
1064
+
1065
+ ```
1066
+ workers = Sidekiq::Workers.new
1067
+ workers.size => 2
1068
+ workers.each do |name, work|
1069
+ # name is a unique identifier per Processor instance
1070
+ # work is a Hash which looks like:
1071
+ # { 'queue' => name, 'run_at' => timestamp, 'payload' => msg }
1072
+ end
1073
+ ```
1074
+
1075
+ - Allow environment-specific sections within the config file which
1076
+ override the global values [dtaniwaki, #630]
1077
+
1078
+ ```
1079
+ ---
1080
+ :concurrency: 50
1081
+ :verbose: false
1082
+ staging:
1083
+ :verbose: true
1084
+ :concurrency: 5
1085
+ ```
1086
+
1087
+
1088
+ 2.6.5
1089
+ -----------
1090
+
1091
+ - Several reliability fixes for job requeueing upon termination [apinstein, #622, #624]
1092
+ - Fix typo in capistrano recipe
1093
+ - Add `retry_queue` option so retries can be given lower priority [ryanlower, #620]
1094
+
1095
+ ```ruby
1096
+ sidekiq_options queue: 'high', retry_queue: 'low'
1097
+ ```
1098
+
1099
+ 2.6.4
1100
+ -----------
1101
+
1102
+ - Fix crash upon empty queue [#612]
1103
+
1104
+ 2.6.3
1105
+ -----------
1106
+
1107
+ - sidekiqctl exits with non-zero exit code upon error [jmazzi]
1108
+ - better argument validation in Sidekiq::Client [karlfreeman]
1109
+
1110
+ 2.6.2
1111
+ -----------
1112
+
1113
+ - Add Dashboard beacon indicating when stats are updated. [brandonhilkert, #606]
1114
+ - Revert issue with capistrano restart. [#598]
1115
+
1116
+ 2.6.1
1117
+ -----------
1118
+
1119
+ - Dashboard now live updates summary stats also. [brandonhilkert, #605]
1120
+ - Add middleware chain APIs `insert_before` and `insert_after` for fine
1121
+ tuning the order of middleware. [jackrg, #595]
1122
+
1123
+ 2.6.0
1124
+ -----------
1125
+
1126
+ - Web UI much more mobile friendly now [brandonhilkert, #573]
1127
+ - Enable live polling for every section in Web UI [brandonhilkert, #567]
1128
+ - Add Stats API [brandonhilkert, #565]
1129
+ - Add Stats::History API [brandonhilkert, #570]
1130
+ - Add Dashboard to Web UI with live and historical stat graphs [brandonhilkert, #580]
1131
+ - Add option to log output to a file, reopen log file on USR2 signal [mrnugget, #581]
1132
+
1133
+ 2.5.4
1134
+ -----------
1135
+
1136
+ - `Sidekiq::Client.push` now accepts the worker class as a string so the
1137
+ Sidekiq client does not have to load your worker classes at all. [#524]
1138
+ - `Sidekiq::Client.push_bulk` now works with inline testing.
1139
+ - **Really** fix status icon in Web UI this time.
1140
+ - Add "Delete All" and "Retry All" buttons to Retries in Web UI
1141
+
1142
+
1143
+ 2.5.3
1144
+ -----------
1145
+
1146
+ - Small Web UI fixes
1147
+ - Add `delay_until` so you can delay jobs until a specific timestamp:
1148
+
1149
+ ```ruby
1150
+ Auction.delay_until(@auction.ends_at).close(@auction.id)
1151
+ ```
1152
+
1153
+ This is identical to the existing Sidekiq::Worker method, `perform_at`.
1154
+
1155
+ 2.5.2
1156
+ -----------
1157
+
1158
+ - Remove asset pipeline from Web UI for much faster, simpler runtime. [#499, #490, #481]
1159
+ - Add -g option so the procline better identifies a Sidekiq process, defaults to File.basename(Rails.root). [#486]
1160
+
1161
+ sidekiq 2.5.1 myapp [0 of 25 busy]
1162
+
1163
+ - Add splay to retry time so groups of failed jobs don't fire all at once. [#483]
1164
+
1165
+ 2.5.1
1166
+ -----------
1167
+
1168
+ - Fix issues with core\_ext
1169
+
1170
+ 2.5.0
1171
+ -----------
1172
+
1173
+ - REDESIGNED WEB UI! [unity, cavneb]
1174
+ - Support Honeybadger for error delivery
1175
+ - Inline testing runs the client middleware before executing jobs [#465]
1176
+ - Web UI can now remove jobs from queue. [#466, dleung]
1177
+ - Web UI can now show the full message, not just 100 chars [#464, dleung]
1178
+ - Add APIs for manipulating the retry and job queues. See sidekiq/api. [#457]
1179
+
1180
+
1181
+ 2.4.0
1182
+ -----------
1183
+
1184
+ - ActionMailer.delay.method now only tries to deliver if method returns a valid message.
1185
+ - Logging now uses "MSG-#{Job ID}", not a random msg ID
1186
+ - Allow generic Redis provider as environment variable. [#443]
1187
+ - Add ability to customize sidekiq\_options with delay calls [#450]
1188
+
1189
+ ```ruby
1190
+ Foo.delay(:retry => false).bar
1191
+ Foo.delay(:retry => 10).bar
1192
+ Foo.delay(:timeout => 10.seconds).bar
1193
+ Foo.delay_for(5.minutes, :timeout => 10.seconds).bar
1194
+ ```
1195
+
1196
+ 2.3.3
1197
+ -----------
1198
+
1199
+ - Remove option to disable Rails hooks. [#401]
1200
+ - Allow delay of any module class method
1201
+
1202
+ 2.3.2
1203
+ -----------
1204
+
1205
+ - Fix retry. 2.3.1 accidentally disabled it.
1206
+
1207
+ 2.3.1
1208
+ -----------
1209
+
1210
+ - Add Sidekiq::Client.push\_bulk for bulk adding of jobs to Redis.
1211
+ My own simple test case shows pushing 10,000 jobs goes from 5 sec to 1.5 sec.
1212
+ - Add support for multiple processes per host to Capistrano recipe
1213
+ - Re-enable Celluloid::Actor#defer to fix stack overflow issues [#398]
1214
+
1215
+ 2.3.0
1216
+ -----------
1217
+
1218
+ - Upgrade Celluloid to 0.12
1219
+ - Upgrade Twitter Bootstrap to 2.1.0
1220
+ - Rescue more Exceptions
1221
+ - Change Job ID to be Hex, rather than Base64, for HTTP safety
1222
+ - Use `Airbrake#notify_or_ignore`
1223
+
1224
+ 2.2.1
1225
+ -----------
1226
+
1227
+ - Add support for custom tabs to Sidekiq::Web [#346]
1228
+ - Change capistrano recipe to run 'quiet' before deploy:update\_code so
1229
+ it is run upon both 'deploy' and 'deploy:migrations'. [#352]
1230
+ - Rescue Exception rather than StandardError to catch and log any sort
1231
+ of Processor death.
1232
+
1233
+ 2.2.0
1234
+ -----------
1235
+
1236
+ - Roll back Celluloid optimizations in 2.1.0 which caused instability.
1237
+ - Add extension to delay any arbitrary class method to Sidekiq.
1238
+ Previously this was limited to ActiveRecord classes.
1239
+
1240
+ ```ruby
1241
+ SomeClass.delay.class_method(1, 'mike', Date.today)
1242
+ ```
1243
+
1244
+ - Sidekiq::Client now generates and returns a random, 128-bit Job ID 'jid' which
1245
+ can be used to track the processing of a Job, e.g. for calling back to a webhook
1246
+ when a job is finished.
1247
+
1248
+ 2.1.1
1249
+ -----------
1250
+
1251
+ - Handle networking errors causing the scheduler thread to die [#309]
1252
+ - Rework exception handling to log all Processor and actor death (#325, subelsky)
1253
+ - Clone arguments when calling worker so modifications are discarded. (#265, hakanensari)
1254
+
1255
+ 2.1.0
1256
+ -----------
1257
+
1258
+ - Tune Celluloid to no longer run message processing within a Fiber.
1259
+ This gives us a full Thread stack and also lowers Sidekiq's memory
1260
+ usage.
1261
+ - Add pagination within the Web UI [#253]
1262
+ - Specify which Redis driver to use: *hiredis* or *ruby* (default)
1263
+ - Remove FailureJobs and UniqueJobs, which were optional middleware
1264
+ that I don't want to support in core. [#302]
1265
+
1266
+ 2.0.3
1267
+ -----------
1268
+ - Fix sidekiq-web's navbar on mobile devices and windows under 980px (ezkl)
1269
+ - Fix Capistrano task for first deploys [#259]
1270
+ - Worker subclasses now properly inherit sidekiq\_options set in
1271
+ their superclass [#221]
1272
+ - Add random jitter to scheduler to spread polls across POLL\_INTERVAL
1273
+ window. [#247]
1274
+ - Sidekiq has a new mailing list: sidekiq@librelist.org See README.
1275
+
1276
+ 2.0.2
1277
+ -----------
1278
+
1279
+ - Fix "Retry Now" button on individual retry page. (ezkl)
1280
+
1281
+ 2.0.1
1282
+ -----------
1283
+
1284
+ - Add "Clear Workers" button to UI. If you kill -9 Sidekiq, the workers
1285
+ set can fill up with stale entries.
1286
+ - Update sidekiq/testing to support new scheduled jobs API:
1287
+
1288
+ ```ruby
1289
+ require 'sidekiq/testing'
1290
+ DirectWorker.perform_in(10.seconds, 1, 2)
1291
+ assert_equal 1, DirectWorker.jobs.size
1292
+ assert_in_delta 10.seconds.from_now.to_f, DirectWorker.jobs.last['at'], 0.01
1293
+ ```
1294
+
1295
+ 2.0.0
1296
+ -----------
1297
+
1298
+ - **SCHEDULED JOBS**!
1299
+
1300
+ You can now use `perform_at` and `perform_in` to schedule jobs
1301
+ to run at arbitrary points in the future, like so:
1302
+
1303
+ ```ruby
1304
+ SomeWorker.perform_in(5.days, 'bob', 13)
1305
+ SomeWorker.perform_at(5.days.from_now, 'bob', 13)
1306
+ ```
1307
+
1308
+ It also works with the delay extensions:
1309
+
1310
+ ```ruby
1311
+ UserMailer.delay_for(5.days).send_welcome_email(user.id)
1312
+ ```
1313
+
1314
+ The time is approximately when the job will be placed on the queue;
1315
+ it is not guaranteed to run at precisely at that moment in time.
1316
+
1317
+ This functionality is meant for one-off, arbitrary jobs. I still
1318
+ recommend `whenever` or `clockwork` if you want cron-like,
1319
+ recurring jobs. See `examples/scheduling.rb`
1320
+
1321
+ I want to specially thank @yabawock for his work on sidekiq-scheduler.
1322
+ His extension for Sidekiq 1.x filled an obvious functional gap that I now think is
1323
+ useful enough to implement in Sidekiq proper.
1324
+
1325
+ - Fixed issues due to Redis 3.x API changes. Sidekiq now requires
1326
+ the Redis 3.x client.
1327
+ - Inline testing now round trips arguments through JSON to catch
1328
+ serialization issues (betelgeuse)
1329
+
1330
+ 1.2.1
1331
+ -----------
1332
+
1333
+ - Sidekiq::Worker now has access to Sidekiq's standard logger
1334
+ - Fix issue with non-StandardErrors leading to Processor exhaustion
1335
+ - Fix issue with Fetcher slowing Sidekiq shutdown
1336
+ - Print backtraces for all threads upon TTIN signal [#183]
1337
+ - Overhaul retries Web UI with new index page and bulk operations [#184]
1338
+
1339
+ 1.2.0
1340
+ -----------
1341
+
1342
+ - Full or partial error backtraces can optionally be stored as part of the retry
1343
+ for display in the web UI if you aren't using an error service. [#155]
1344
+
1345
+ ```ruby
1346
+ class Worker
1347
+ include Sidekiq::Worker
1348
+ sidekiq_options :backtrace => [true || 10]
1349
+ end
1350
+ ```
1351
+ - Add timeout option to kill a worker after N seconds (blackgold9)
1352
+
1353
+ ```ruby
1354
+ class HangingWorker
1355
+ include Sidekiq::Worker
1356
+ sidekiq_options :timeout => 600
1357
+ def perform
1358
+ # will be killed if it takes longer than 10 minutes
1359
+ end
1360
+ end
1361
+ ```
1362
+
1363
+ - Fix delayed extensions not available in workers [#152]
1364
+ - In test environments add the `#drain` class method to workers. This method
1365
+ executes all previously queued jobs. (panthomakos)
1366
+ - Sidekiq workers can be run inline during tests, just `require 'sidekiq/testing/inline'` (panthomakos)
1367
+ - Queues can now be deleted from the Sidekiq web UI [#154]
1368
+ - Fix unnecessary shutdown delay due to Retry Poller [#174]
1369
+
1370
+ 1.1.4
1371
+ -----------
1372
+
1373
+ - Add 24 hr expiry for basic keys set in Redis, to avoid any possible leaking.
1374
+ - Only register workers in Redis while working, to avoid lingering
1375
+ workers [#156]
1376
+ - Speed up shutdown significantly.
1377
+
1378
+ 1.1.3
1379
+ -----------
1380
+
1381
+ - Better network error handling when fetching jobs from Redis.
1382
+ Sidekiq will retry once per second until it can re-establish
1383
+ a connection. (ryanlecompte)
1384
+ - capistrano recipe now uses `bundle_cmd` if set [#147]
1385
+ - handle multi\_json API changes (sferik)
1386
+
1387
+ 1.1.2
1388
+ -----------
1389
+
1390
+ - Fix double restart with cap deploy [#137]
1391
+
1392
+ 1.1.1
1393
+ -----------
1394
+
1395
+ - Set procline for easy monitoring of Sidekiq status via "ps aux"
1396
+ - Fix race condition on shutdown [#134]
1397
+ - Fix hang with cap sidekiq:start [#131]
1398
+
1399
+ 1.1.0
1400
+ -----------
1401
+
1402
+ - The Sidekiq license has switched from GPLv3 to LGPLv3!
1403
+ - Sidekiq::Client.push now returns whether the actual Redis
1404
+ operation succeeded or not. [#123]
1405
+ - Remove UniqueJobs from the default middleware chain. Its
1406
+ functionality, while useful, is unexpected for new Sidekiq
1407
+ users. You can re-enable it with the following config.
1408
+ Read #119 for more discussion.
1409
+
1410
+ ```ruby
1411
+ Sidekiq.configure_client do |config|
1412
+ require 'sidekiq/middleware/client/unique_jobs'
1413
+ config.client_middleware do |chain|
1414
+ chain.add Sidekiq::Middleware::Client::UniqueJobs
1415
+ end
1416
+ end
1417
+ Sidekiq.configure_server do |config|
1418
+ require 'sidekiq/middleware/server/unique_jobs'
1419
+ config.server_middleware do |chain|
1420
+ chain.add Sidekiq::Middleware::Server::UniqueJobs
1421
+ end
1422
+ end
1423
+ ```
1424
+
1425
+ 1.0.0
1426
+ -----------
1427
+
1428
+ Thanks to all Sidekiq users and contributors for helping me
1429
+ get to this big milestone!
1430
+
1431
+ - Default concurrency on client-side to 5, not 25 so we don't
1432
+ create as many unused Redis connections, same as ActiveRecord's
1433
+ default pool size.
1434
+ - Ensure redis= is given a Hash or ConnectionPool.
1435
+
1436
+ 0.11.2
1437
+ -----------
1438
+
1439
+ - Implement "safe shutdown". The messages for any workers that
1440
+ are still busy when we hit the TERM timeout will be requeued in
1441
+ Redis so the messages are not lost when the Sidekiq process exits.
1442
+ [#110]
1443
+ - Work around Celluloid's small 4kb stack limit [#115]
1444
+ - Add support for a custom Capistrano role to limit Sidekiq to
1445
+ a set of machines. [#113]
1446
+
1447
+ 0.11.1
1448
+ -----------
1449
+
1450
+ - Fix fetch breaking retry when used with Redis namespaces. [#109]
1451
+ - Redis connection now just a plain ConnectionPool, not CP::Wrapper.
1452
+ - Capistrano initial deploy fix [#106]
1453
+ - Re-implemented weighted queues support (ryanlecompte)
1454
+
1455
+ 0.11.0
1456
+ -----------
1457
+
1458
+ - Client-side API changes, added sidekiq\_options for Sidekiq::Worker.
1459
+ As a side effect of this change, the client API works on Ruby 1.8.
1460
+ It's not officially supported but should work [#103]
1461
+ - NO POLL! Sidekiq no longer polls Redis, leading to lower network
1462
+ utilization and lower latency for message processing.
1463
+ - Add --version CLI option
1464
+
1465
+ 0.10.1
1466
+ -----------
1467
+
1468
+ - Add details page for jobs in retry queue (jcoene)
1469
+ - Display relative timestamps in web interface (jcoene)
1470
+ - Capistrano fixes (hinrik, bensie)
1471
+
1472
+ 0.10.0
1473
+ -----------
1474
+
1475
+ - Reworked capistrano recipe to make it more fault-tolerant [#94].
1476
+ - Automatic failure retry! Sidekiq will now save failed messages
1477
+ and retry them, with an exponential backoff, over about 20 days.
1478
+ Did a message fail to process? Just deploy a bug fix in the next
1479
+ few days and Sidekiq will retry the message eventually.
1480
+
1481
+ 0.9.1
1482
+ -----------
1483
+
1484
+ - Fix missed deprecations, poor method name in web UI
1485
+
1486
+ 0.9.0
1487
+ -----------
1488
+
1489
+ - Add -t option to configure the TERM shutdown timeout
1490
+ - TERM shutdown timeout is now configurable, defaults to 5 seconds.
1491
+ - USR1 signal now stops Sidekiq from accepting new work,
1492
+ capistrano sends USR1 at start of deploy and TERM at end of deploy
1493
+ giving workers the maximum amount of time to finish.
1494
+ - New Sidekiq::Web rack application available
1495
+ - Updated Sidekiq.redis API
1496
+
1497
+ 0.8.0
1498
+ -----------
1499
+
1500
+ - Remove :namespace and :server CLI options (mperham)
1501
+ - Add ExceptionNotifier support (masterkain)
1502
+ - Add capistrano support (mperham)
1503
+ - Workers now log upon start and finish (mperham)
1504
+ - Messages for terminated workers are now automatically requeued (mperham)
1505
+ - Add support for Exceptional error reporting (bensie)
1506
+
1507
+ 0.7.0
1508
+ -----------
1509
+
1510
+ - Example chef recipe and monitrc script (jc00ke)
1511
+ - Refactor global configuration into Sidekiq.configure\_server and
1512
+ Sidekiq.configure\_client blocks. (mperham)
1513
+ - Add optional middleware FailureJobs which saves failed jobs to a
1514
+ 'failed' queue (fbjork)
1515
+ - Upon shutdown, workers are now terminated after 5 seconds. This is to
1516
+ meet Heroku's hard limit of 10 seconds for a process to shutdown. (mperham)
1517
+ - Refactor middleware API for simplicity, see sidekiq/middleware/chain. (mperham)
1518
+ - Add `delay` extensions for ActionMailer and ActiveRecord. (mperham)
1519
+ - Added config file support. See test/config.yml for an example file. (jc00ke)
1520
+ - Added pidfile for tools like monit (jc00ke)
1521
+
1522
+ 0.6.0
1523
+ -----------
1524
+
1525
+ - Resque-compatible processing stats in redis (mperham)
1526
+ - Simple client testing support in sidekiq/testing (mperham)
1527
+ - Plain old Ruby support via the -r cli flag (mperham)
1528
+ - Refactored middleware support, introducing ability to add client-side middleware (ryanlecompte)
1529
+ - Added middleware for ignoring duplicate jobs (ryanlecompte)
1530
+ - Added middleware for displaying jobs in resque-web dashboard (maxjustus)
1531
+ - Added redis namespacing support (maxjustus)
1532
+
1533
+ 0.5.1
1534
+ -----------
1535
+
1536
+ - Initial release!