sidekiq 5.0.1 → 5.2.9

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 (59) hide show
  1. checksums.yaml +5 -5
  2. data/.circleci/config.yml +61 -0
  3. data/.github/issue_template.md +3 -1
  4. data/.gitignore +2 -0
  5. data/.travis.yml +6 -13
  6. data/COMM-LICENSE +11 -9
  7. data/Changes.md +136 -1
  8. data/Ent-Changes.md +46 -3
  9. data/Gemfile +14 -20
  10. data/LICENSE +1 -1
  11. data/Pro-4.0-Upgrade.md +35 -0
  12. data/Pro-Changes.md +125 -0
  13. data/README.md +5 -3
  14. data/Rakefile +2 -5
  15. data/bin/sidekiqctl +13 -92
  16. data/bin/sidekiqload +2 -2
  17. data/lib/sidekiq.rb +24 -15
  18. data/lib/sidekiq/api.rb +83 -37
  19. data/lib/sidekiq/cli.rb +106 -76
  20. data/lib/sidekiq/client.rb +36 -33
  21. data/lib/sidekiq/ctl.rb +221 -0
  22. data/lib/sidekiq/delay.rb +23 -2
  23. data/lib/sidekiq/exception_handler.rb +2 -4
  24. data/lib/sidekiq/fetch.rb +1 -1
  25. data/lib/sidekiq/job_logger.rb +4 -3
  26. data/lib/sidekiq/job_retry.rb +51 -24
  27. data/lib/sidekiq/launcher.rb +18 -12
  28. data/lib/sidekiq/logging.rb +9 -5
  29. data/lib/sidekiq/manager.rb +5 -6
  30. data/lib/sidekiq/middleware/server/active_record.rb +2 -1
  31. data/lib/sidekiq/processor.rb +85 -48
  32. data/lib/sidekiq/rails.rb +7 -0
  33. data/lib/sidekiq/redis_connection.rb +40 -4
  34. data/lib/sidekiq/scheduled.rb +35 -8
  35. data/lib/sidekiq/testing.rb +4 -4
  36. data/lib/sidekiq/util.rb +5 -1
  37. data/lib/sidekiq/version.rb +1 -1
  38. data/lib/sidekiq/web.rb +4 -4
  39. data/lib/sidekiq/web/action.rb +2 -2
  40. data/lib/sidekiq/web/application.rb +24 -2
  41. data/lib/sidekiq/web/helpers.rb +18 -8
  42. data/lib/sidekiq/web/router.rb +10 -10
  43. data/lib/sidekiq/worker.rb +39 -22
  44. data/sidekiq.gemspec +6 -17
  45. data/web/assets/javascripts/application.js +0 -0
  46. data/web/assets/javascripts/dashboard.js +15 -5
  47. data/web/assets/stylesheets/application.css +35 -2
  48. data/web/assets/stylesheets/bootstrap.css +2 -2
  49. data/web/locales/ar.yml +1 -0
  50. data/web/locales/en.yml +2 -0
  51. data/web/locales/es.yml +4 -3
  52. data/web/locales/ja.yml +5 -3
  53. data/web/views/_footer.erb +3 -0
  54. data/web/views/_nav.erb +3 -17
  55. data/web/views/layout.erb +1 -1
  56. data/web/views/queue.erb +1 -0
  57. data/web/views/queues.erb +2 -0
  58. data/web/views/retries.erb +4 -0
  59. metadata +20 -156
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 04414e0337f9a41c13f324892ee670396e99ff89
4
- data.tar.gz: ca4f4c23c886511caf5699b6e4dffba02c5c721a
2
+ SHA256:
3
+ metadata.gz: 575db4e3e544aee9b13d0cd23610bf39c4167e3a9835d4c046a9b355d2cb9c0e
4
+ data.tar.gz: 3f1f5806001515d03e206ce8d0695e59f9ff563ac5d84472294799424187591c
5
5
  SHA512:
6
- metadata.gz: d55706e0ffb62246ba056607a7b3ce6c35cad7d18fcc0bff277d4de89f87cecd64e81a373c9dacc9add59604036fed55c0e66ebf9fa62ca2c8b6da553db60e13
7
- data.tar.gz: c66998d5104c7c5fa0c22034b9c7b97ad685a3bc14f65b72812ef3c59fbf01799b81304da6e39806bd49661129629ed8ad2619fae29b4b3d04b7f9225403fbfd
6
+ metadata.gz: 525fe03fcc6911d231696182d46de5da5d4c072681c924b14a0732aeb6aed3a1310baa4f9827f0f50925b69bede7218d485c4a81ebeb2feb712881b39da996e7
7
+ data.tar.gz: 586fb51fff5bfefaa6db779e470b6040c8d98a2d4e8fb319cde6087c3f02ffc242ae0a067e32cb8f25585cd6d8d6c12e40f05507514b9406bdb1eadb3ac6f2dd
@@ -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"
@@ -4,6 +4,8 @@ Sidekiq / Pro / Enterprise version(s):
4
4
  Please include your initializer and any error message with the full backtrace.
5
5
 
6
6
  Are you using an old version?
7
- Have you checked the changelog to see if your issue has been fixed in a later version?
7
+ Have you checked the changelogs to see if your issue has been fixed in a later version?
8
8
 
9
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
data/.gitignore CHANGED
@@ -2,6 +2,7 @@
2
2
  .ruby-version
3
3
  tags
4
4
  Gemfile.lock
5
+ gemfiles/*.lock
5
6
  *.swp
6
7
  dump.rdb
7
8
  .rbx
@@ -11,3 +12,4 @@ vendor/
11
12
  .sass-cache/
12
13
  tmp/
13
14
  pkg/*.gem
15
+ .byebug_history
data/.travis.yml CHANGED
@@ -3,16 +3,9 @@ sudo: false
3
3
  cache: bundler
4
4
  services:
5
5
  - redis-server
6
- before_install:
7
- - gem install bundler
8
- - gem update bundler
9
- matrix:
10
- include:
11
- - rvm: 2.2.4
12
- env: "PERCY_ENABLE=0"
13
- - rvm: 2.3.0
14
- env: "PERCY_ENABLE=0"
15
- - rvm: 2.4.0
16
- env: "PERCY_ENABLE=1"
17
- - rvm: jruby-9.1.6.0
18
- env: "PERCY_ENABLE=0"
6
+ rvm:
7
+ - 2.3.7
8
+ - 2.4.4
9
+ - 2.5.1
10
+ - 2.6.0
11
+ - jruby-9.2.6.0
data/COMM-LICENSE CHANGED
@@ -14,13 +14,15 @@ In order to use the Software under this Agreement, you must receive a “Source
14
14
 
15
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
16
 
17
- 1.3 Limited Organization License. If you purchased an Organization License (included with 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.
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
18
 
19
- 1.4 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.
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
20
 
21
- 1.5 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.
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
22
 
23
- 1.6 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”).
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”).
24
26
 
25
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.
26
28
 
@@ -31,7 +33,7 @@ In order to use the Software under this Agreement, you must receive a “Source
31
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.
32
34
 
33
35
  The Open Source version of the Software (“LGPL Version”) is licensed
34
- under the terms of the GNU Lesser General Public License versions 3.0
36
+ under the terms of the GNU Lesser General Public License version 3.0
35
37
  (“LGPL”) and not under this EULA.
36
38
 
37
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.
@@ -42,7 +44,7 @@ under the terms of the GNU Lesser General Public License versions 3.0
42
44
 
43
45
  7. Term of Agreement.
44
46
 
45
- 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.
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.
46
48
 
47
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.
48
50
 
@@ -57,7 +59,7 @@ In no event will Contributed Systems be liable for any direct, indirect, consequ
57
59
 
58
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.
59
61
 
60
- 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.
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.
61
63
 
62
64
  11. Acknowledgements.
63
65
 
@@ -67,7 +69,7 @@ In no event will Contributed Systems' liability exceed the Software license pric
67
69
 
68
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.
69
71
 
70
- 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.
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.
71
73
 
72
74
 
73
75
  13. Miscellaneous
@@ -84,7 +86,7 @@ In no event will Contributed Systems' liability exceed the Software license pric
84
86
 
85
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.
86
88
 
87
- 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.
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.
88
90
 
89
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.
90
92
 
data/Changes.md CHANGED
@@ -2,7 +2,142 @@
2
2
 
3
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
4
 
5
- HEAD
5
+ 5.2.9
6
+ ---------
7
+
8
+ - Release Rack lock due to a cascade of CVEs. [#4566]
9
+ Pro-tip: don't lock Rack.
10
+
11
+ 5.2.8
12
+ ---------
13
+
14
+ - Lock to Rack 2.0.x to prevent future incompatibilities
15
+ - Fix invalid reference in `sidekiqctl`
16
+
17
+ 5.2.7
18
+ ---------
19
+
20
+ - Fix stale `enqueued_at` when retrying [#4149]
21
+ - Move build to [Circle CI](https://circleci.com/gh/mperham/sidekiq) [#4120]
22
+
23
+ 5.2.6
24
+ ---------
25
+
26
+ - Fix edge case where a job failure during Redis outage could result in a lost job [#4141]
27
+ - Better handling of malformed job arguments in payload [#4095]
28
+ - Restore bootstap's dropdown css component [#4099, urkle]
29
+ - Display human-friendly time diff for longer queue latencies [#4111, interlinked]
30
+ - Allow `Sidekiq::Worker#set` to be chained
31
+
32
+ 5.2.5
33
+ ---------
34
+
35
+ - Fix default usage of `config/sidekiq.yml` [#4077, Tensho]
36
+
37
+ 5.2.4
38
+ ---------
39
+
40
+ - Add warnings for various deprecations and changes coming in Sidekiq 6.0.
41
+ See the 6-0 branch. [#4056]
42
+ - Various improvements to the Sidekiq test suite and coverage [#4026, #4039, Tensho]
43
+
44
+ 5.2.3
45
+ ---------
46
+
47
+ - Warning message on invalid REDIS\_PROVIDER [#3970]
48
+ - Add `sidekiqctl status` command [#4003, dzunk]
49
+ - Update elapsed time calculatons to use monotonic clock [#3999]
50
+ - Fix a few issues with mobile Web UI styling [#3973, navied]
51
+ - Jobs with `retry: false` now go through the global `death_handlers`,
52
+ meaning you can take action on failed ephemeral jobs. [#3980, Benjamin-Dobell]
53
+ - Fix race condition in defining Workers. [#3997, mattbooks]
54
+
55
+ 5.2.2
56
+ ---------
57
+
58
+ - Raise error for duplicate queue names in config to avoid unexpected fetch algorithm change [#3911]
59
+ - Fix concurrency bug on JRuby [#3958, mattbooks]
60
+ - Add "Kill All" button to the retries page [#3938]
61
+
62
+ 5.2.1
63
+ -----------
64
+
65
+ - Fix concurrent modification error during heartbeat [#3921]
66
+
67
+ 5.2.0
68
+ -----------
69
+
70
+ - **Decrease default concurrency from 25 to 10** [#3892]
71
+ - Verify connection pool sizing upon startup [#3917]
72
+ - Smoother scheduling for large Sidekiq clusters [#3889]
73
+ - Switch Sidekiq::Testing impl from alias\_method to Module#prepend, for resiliency [#3852]
74
+ - Update Sidekiq APIs to use SCAN for scalability [#3848, ffiller]
75
+ - Remove concurrent-ruby gem dependency [#3830]
76
+ - Optimize Web UI's bootstrap.css [#3914]
77
+
78
+ 5.1.3
79
+ -----------
80
+
81
+ - Fix version comparison so Ruby 2.2.10 works. [#3808, nateberkopec]
82
+
83
+ 5.1.2
84
+ -----------
85
+
86
+ - Add link to docs in Web UI footer
87
+ - Fix crash on Ctrl-C in Windows [#3775, Bernica]
88
+ - Remove `freeze` calls on String constants. This is superfluous with Ruby
89
+ 2.3+ and `frozen_string_literal: true`. [#3759]
90
+ - Fix use of AR middleware outside of Rails [#3787]
91
+ - Sidekiq::Worker `sidekiq_retry_in` block can now return nil or 0 to use
92
+ the default backoff delay [#3796, dsalahutdinov]
93
+
94
+ 5.1.1
95
+ -----------
96
+
97
+ - Fix Web UI incompatibility with Redis 3.x gem [#3749]
98
+
99
+ 5.1.0
100
+ -----------
101
+
102
+ - **NEW** Global death handlers - called when your job exhausts all
103
+ retries and dies. Now you can take action when a job fails permanently. [#3721]
104
+ - **NEW** Enable ActiveRecord query cache within jobs by default [#3718, sobrinho]
105
+ This will prevent duplicate SELECTS; cache is cleared upon any UPDATE/INSERT/DELETE.
106
+ See the issue for how to bypass the cache or disable it completely.
107
+ - Scheduler timing is now more accurate, 15 -> 5 seconds [#3734]
108
+ - Exceptions during the :startup event will now kill the process [#3717]
109
+ - Make `Sidekiq::Client.via` reentrant [#3715]
110
+ - Fix use of Sidekiq logger outside of the server process [#3714]
111
+ - Tweak `constantize` to better match Rails class lookup. [#3701, caffeinated-tech]
112
+
113
+ 5.0.5
114
+ -----------
115
+
116
+ - Update gemspec to allow newer versions of the Redis gem [#3617]
117
+ - Refactor Worker.set so it can be memoized [#3602]
118
+ - Fix display of Redis URL in web footer, broken in 5.0.3 [#3560]
119
+ - Update `Sidekiq::Job#display_args` to avoid mutation [#3621]
120
+
121
+ 5.0.4
122
+ -----------
123
+
124
+ - Fix "slow startup" performance regression from 5.0.2. [#3525]
125
+ - Allow users to disable ID generation since some redis providers disable the CLIENT command. [#3521]
126
+
127
+ 5.0.3
128
+ -----------
129
+
130
+ - Fix overriding `class_attribute` core extension from ActiveSupport with Sidekiq one [PikachuEXE, #3499]
131
+ - Allow job logger to be overridden [AlfonsoUceda, #3502]
132
+ - Set a default Redis client identifier for debugging [#3516]
133
+ - Fix "Uninitialized constant" errors on startup with the delayed extensions [#3509]
134
+
135
+ 5.0.2
136
+ -----------
137
+
138
+ - fix broken release, thanks @nateberkopec
139
+
140
+ 5.0.1
6
141
  -----------
7
142
 
8
143
  - Fix incorrect server identity when daemonizing [jwilm, #3496]
data/Ent-Changes.md CHANGED
@@ -4,12 +4,55 @@
4
4
 
5
5
  Please see [http://sidekiq.org/](http://sidekiq.org/) for more details and how to buy.
6
6
 
7
- HEAD
7
+ 1.8.1
8
8
  -------------
9
9
 
10
- - Show process "leader" tag on Busy page, requires Sidekiq 5.0.1 [#2867]
10
+ - Fix excessive lock reclaims with concurrent limiter [#4105]
11
+ - Add ES translations, see issues [#3949](https://github.com/mperham/sidekiq/issues/3949) and [#3951](https://github.com/mperham/sidekiq/issues/3951) to add your own language.
12
+
13
+ 1.8.0
14
+ -------------
15
+
16
+ - Require Sidekiq Pro 4.0 and Sidekiq 5.2.
17
+ - Refactor historical metrics API to use revamped Statsd support in Sidekiq Pro
18
+ - Add a gauge to historical metrics for `default` queue latency [#4079]
19
+
20
+ 1.7.2
21
+ -------------
22
+
23
+ - Add PT and JA translations
24
+ - Fix elapsed time calculations to use monotonic clock [#4000, sj26]
25
+ - Fix edge case where flapping leadership would cause old periodic
26
+ jobs to be fired once [#3974]
27
+ - Add support for sidekiqswarm memory monitoring on FreeBSD [#3884]
28
+
29
+ 1.7.1
30
+ -------------
31
+
32
+ - Fix Lua error in concurrent rate limiter under heavy contention
33
+ - Remove superfluous `freeze` calls on Strings [#3759]
34
+
35
+ 1.7.0
36
+ -------------
37
+
38
+ - **NEW FEATURE** [Rolling restarts](https://github.com/mperham/sidekiq/wiki/Ent-Rolling-Restarts) - great for long running jobs!
39
+ - Adjust middleware so unique jobs that don't push aren't registered in a Batch [#3662]
40
+ - Add new unlimited rate limiter, useful for testing [#3743]
41
+ ```ruby
42
+ limiter = Sidekiq::Limiter.unlimited(...any args...)
43
+ ```
44
+
45
+ 1.6.1
46
+ -------------
47
+
48
+ - Fix crash in rate limiter middleware when used with custom exceptions [#3604]
49
+
50
+ 1.6.0
51
+ -------------
52
+
53
+ - Show process "leader" tag on Busy page, requires Sidekiq 5.0.2 [#2867]
11
54
  - Capture custom metrics with the `save_history` API. [#2815]
12
- - Implement new `unique_util: 'start'` policy option. [#3471]
55
+ - Implement new `unique_until: 'start'` policy option. [#3471]
13
56
 
14
57
  1.5.4
15
58
  -------------
data/Gemfile CHANGED
@@ -1,29 +1,23 @@
1
1
  source 'https://rubygems.org'
2
+
2
3
  gemspec
3
4
 
4
- gem 'rails', '>= 5.0.1'
5
- gem "hiredis"
6
- gem 'simplecov'
7
- gem 'minitest'
8
- #gem 'minitest-utils'
9
- gem 'toxiproxy'
5
+ gem 'rake'
6
+ gem 'redis-namespace'
7
+ gem 'rails', '~> 5.2'
8
+ gem 'sqlite3', '~> 1.3.6', platforms: :ruby
9
+ gem 'activerecord-jdbcsqlite3-adapter', platforms: :jruby
10
10
 
11
- platforms :rbx do
12
- gem 'rubysl', '~> 2.0' # if using anything in the ruby standard library
13
- gem 'psych' # if using yaml
14
- gem 'rubinius-developer_tools' # if using any of coverage, debugger, profiler
11
+ group :test do
12
+ gem 'minitest'
13
+ gem 'simplecov'
15
14
  end
16
15
 
17
- platforms :ruby do
18
- gem 'sqlite3'
16
+ group :development, :test do
17
+ gem 'pry-byebug', platforms: :mri
19
18
  end
20
19
 
21
- platforms :mri do
22
- gem 'pry-byebug'
23
- gem 'ruby-prof'
20
+ group :load_test do
21
+ gem 'hiredis'
22
+ gem 'toxiproxy'
24
23
  end
25
-
26
- #platforms :jruby do
27
- #gem 'jruby-openssl'
28
- #gem 'activerecord-jdbcsqlite3-adapter'
29
- #end
data/LICENSE CHANGED
@@ -5,5 +5,5 @@ the LGPLv3 license. Please see <http://www.gnu.org/licenses/lgpl-3.0.html>
5
5
  for license text.
6
6
 
7
7
  Sidekiq Pro has a commercial-friendly license allowing private forks
8
- and modifications of Sidekiq. Please see http://sidekiq.org/pro/ for
8
+ and modifications of Sidekiq. Please see https://sidekiq.org/products/pro.html for
9
9
  more detail. You can find the commercial license terms in COMM-LICENSE.
@@ -0,0 +1,35 @@
1
+ # Welcome to Sidekiq Pro 4.0!
2
+
3
+ Sidekiq Pro 4.0 is designed to work with Sidekiq 5.0.
4
+
5
+ ## What's New
6
+
7
+ * Batches now "die" if any of their jobs die. You can enumerate the set
8
+ of dead batches and their associated dead jobs. The success callback
9
+ for a dead batch will never fire unless these jobs are fixed.
10
+ ```ruby
11
+ Sidekiq::Batch::DeadSet.new.each do |status|
12
+ status.dead? # => true
13
+ status.dead_jobs # => [...]
14
+ end
15
+ ```
16
+ This API allows you to enumerate the batches which need help.
17
+ If you fix the issue and the dead jobs succeed, the batch will succeed.
18
+ * The older `reliable_fetch` and `timed_fetch` algorithms have been
19
+ removed. Only super\_fetch is available in 4.0.
20
+ * The statsd middleware has been tweaked to remove support for legacy,
21
+ pre-3.6.0 configuration and add relevant tags.
22
+ * Requires Sidekiq 5.0.5+.
23
+
24
+ ## Upgrade
25
+
26
+ * Upgrade to the latest Sidekiq Pro 3.x.
27
+ ```ruby
28
+ gem 'sidekiq-pro', '< 4'
29
+ ```
30
+ * Fix any deprecation warnings you see.
31
+ * Upgrade to 4.x.
32
+ ```ruby
33
+ gem 'sidekiq-pro', '< 5'
34
+ ```
35
+