sidekiq 5.2.8

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