sidekiq 6.1.1 → 6.5.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/Changes.md +250 -3
  3. data/LICENSE +3 -3
  4. data/README.md +10 -6
  5. data/bin/sidekiq +3 -3
  6. data/bin/sidekiqload +70 -66
  7. data/bin/sidekiqmon +1 -1
  8. data/lib/generators/sidekiq/job_generator.rb +57 -0
  9. data/lib/generators/sidekiq/templates/{worker.rb.erb → job.rb.erb} +2 -2
  10. data/lib/generators/sidekiq/templates/{worker_spec.rb.erb → job_spec.rb.erb} +1 -1
  11. data/lib/generators/sidekiq/templates/{worker_test.rb.erb → job_test.rb.erb} +1 -1
  12. data/lib/sidekiq/api.rb +352 -156
  13. data/lib/sidekiq/cli.rb +86 -41
  14. data/lib/sidekiq/client.rb +49 -73
  15. data/lib/sidekiq/{util.rb → component.rb} +12 -14
  16. data/lib/sidekiq/delay.rb +3 -1
  17. data/lib/sidekiq/extensions/action_mailer.rb +3 -2
  18. data/lib/sidekiq/extensions/active_record.rb +1 -1
  19. data/lib/sidekiq/extensions/generic_proxy.rb +4 -2
  20. data/lib/sidekiq/fetch.rb +31 -20
  21. data/lib/sidekiq/job.rb +13 -0
  22. data/lib/sidekiq/job_logger.rb +16 -28
  23. data/lib/sidekiq/job_retry.rb +79 -59
  24. data/lib/sidekiq/job_util.rb +71 -0
  25. data/lib/sidekiq/launcher.rb +126 -65
  26. data/lib/sidekiq/logger.rb +11 -20
  27. data/lib/sidekiq/manager.rb +35 -34
  28. data/lib/sidekiq/metrics/deploy.rb +47 -0
  29. data/lib/sidekiq/metrics/query.rb +153 -0
  30. data/lib/sidekiq/metrics/shared.rb +94 -0
  31. data/lib/sidekiq/metrics/tracking.rb +134 -0
  32. data/lib/sidekiq/middleware/chain.rb +88 -42
  33. data/lib/sidekiq/middleware/current_attributes.rb +63 -0
  34. data/lib/sidekiq/middleware/i18n.rb +6 -4
  35. data/lib/sidekiq/middleware/modules.rb +21 -0
  36. data/lib/sidekiq/monitor.rb +2 -2
  37. data/lib/sidekiq/paginator.rb +17 -9
  38. data/lib/sidekiq/processor.rb +47 -41
  39. data/lib/sidekiq/rails.rb +32 -4
  40. data/lib/sidekiq/redis_client_adapter.rb +154 -0
  41. data/lib/sidekiq/redis_connection.rb +84 -55
  42. data/lib/sidekiq/ring_buffer.rb +29 -0
  43. data/lib/sidekiq/scheduled.rb +96 -32
  44. data/lib/sidekiq/testing/inline.rb +4 -4
  45. data/lib/sidekiq/testing.rb +38 -39
  46. data/lib/sidekiq/transaction_aware_client.rb +45 -0
  47. data/lib/sidekiq/version.rb +1 -1
  48. data/lib/sidekiq/web/action.rb +3 -3
  49. data/lib/sidekiq/web/application.rb +41 -16
  50. data/lib/sidekiq/web/csrf_protection.rb +32 -5
  51. data/lib/sidekiq/web/helpers.rb +52 -30
  52. data/lib/sidekiq/web/router.rb +4 -1
  53. data/lib/sidekiq/web.rb +38 -78
  54. data/lib/sidekiq/worker.rb +142 -16
  55. data/lib/sidekiq.rb +114 -31
  56. data/sidekiq.gemspec +12 -4
  57. data/web/assets/images/apple-touch-icon.png +0 -0
  58. data/web/assets/javascripts/application.js +114 -60
  59. data/web/assets/javascripts/chart.min.js +13 -0
  60. data/web/assets/javascripts/chartjs-plugin-annotation.min.js +7 -0
  61. data/web/assets/javascripts/dashboard.js +50 -67
  62. data/web/assets/javascripts/graph.js +16 -0
  63. data/web/assets/javascripts/metrics.js +262 -0
  64. data/web/assets/stylesheets/application-dark.css +61 -51
  65. data/web/assets/stylesheets/application-rtl.css +0 -4
  66. data/web/assets/stylesheets/application.css +84 -243
  67. data/web/locales/ar.yml +8 -2
  68. data/web/locales/el.yml +43 -19
  69. data/web/locales/en.yml +11 -1
  70. data/web/locales/es.yml +18 -2
  71. data/web/locales/fr.yml +8 -1
  72. data/web/locales/ja.yml +10 -0
  73. data/web/locales/lt.yml +1 -1
  74. data/web/locales/pt-br.yml +27 -9
  75. data/web/locales/ru.yml +4 -0
  76. data/web/locales/zh-cn.yml +36 -11
  77. data/web/locales/zh-tw.yml +32 -7
  78. data/web/views/_footer.erb +1 -1
  79. data/web/views/_job_info.erb +1 -1
  80. data/web/views/_nav.erb +1 -1
  81. data/web/views/_poll_link.erb +2 -5
  82. data/web/views/_summary.erb +7 -7
  83. data/web/views/busy.erb +57 -21
  84. data/web/views/dashboard.erb +23 -14
  85. data/web/views/dead.erb +1 -1
  86. data/web/views/layout.erb +2 -1
  87. data/web/views/metrics.erb +69 -0
  88. data/web/views/metrics_for_job.erb +87 -0
  89. data/web/views/morgue.erb +6 -6
  90. data/web/views/queue.erb +15 -11
  91. data/web/views/queues.erb +4 -4
  92. data/web/views/retries.erb +7 -7
  93. data/web/views/retry.erb +1 -1
  94. data/web/views/scheduled.erb +1 -1
  95. metadata +52 -39
  96. data/.circleci/config.yml +0 -71
  97. data/.github/contributing.md +0 -32
  98. data/.github/issue_template.md +0 -11
  99. data/.gitignore +0 -13
  100. data/.standard.yml +0 -20
  101. data/3.0-Upgrade.md +0 -70
  102. data/4.0-Upgrade.md +0 -53
  103. data/5.0-Upgrade.md +0 -56
  104. data/6.0-Upgrade.md +0 -72
  105. data/COMM-LICENSE +0 -97
  106. data/Ent-2.0-Upgrade.md +0 -37
  107. data/Ent-Changes.md +0 -275
  108. data/Gemfile +0 -24
  109. data/Gemfile.lock +0 -208
  110. data/Pro-2.0-Upgrade.md +0 -138
  111. data/Pro-3.0-Upgrade.md +0 -44
  112. data/Pro-4.0-Upgrade.md +0 -35
  113. data/Pro-5.0-Upgrade.md +0 -25
  114. data/Pro-Changes.md +0 -795
  115. data/Rakefile +0 -10
  116. data/code_of_conduct.md +0 -50
  117. data/lib/generators/sidekiq/worker_generator.rb +0 -57
  118. data/lib/sidekiq/exception_handler.rb +0 -27
data/COMM-LICENSE DELETED
@@ -1,97 +0,0 @@
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.
data/Ent-2.0-Upgrade.md DELETED
@@ -1,37 +0,0 @@
1
- # Welcome to Sidekiq Enterprise 2.0!
2
-
3
- Sidekiq Enterprise 2.0 adds a few new features and adds the requirement that license
4
- credentials be available at runtime. Note that Sidekiq 6.0 does have major breaking changes.
5
-
6
- ## What's New
7
-
8
- * Sidekiq Enterprise now requires license credentials at runtime. If you
9
- configured Bundler as described in the access email you need do
10
- nothing, everything should just work. If you are vendoring Sidekiq
11
- Enterprise you will need to configure Bundler also or set
12
- `SIDEKIQ_ENT_USERNAME=abcdef12 bundle exec sidekiq...` when starting the
13
- process. [#4232]
14
- * Dead jobs now release any unique locks they were holding when they died [#4162]
15
- * Backoff can now be customized per rate limiter by passing in a Proc [#4219]
16
- ```ruby
17
- limiter = Sidekiq::Limiter.bucket(:stripe, 10, :second, backoff: ->(limiter, job) {
18
- return job['overrated'] || 5 # wait for N seconds, where N is the number of
19
- # times we've failed the rate limit
20
- })
21
- ```
22
- * Removed deprecated APIs and warnings.
23
- * Various changes for Sidekiq 6.0
24
- * Requires Ruby 2.5+ and Redis 4.0+
25
- * Requires Sidekiq 6.0+ and Sidekiq Pro 5.0+
26
-
27
- ## Upgrade
28
-
29
- * Upgrade to the latest Sidekiq Enterprise 1.x.
30
- ```ruby
31
- gem 'sidekiq-ent', '< 2'
32
- ```
33
- * Fix any deprecation warnings you see.
34
- * Upgrade to 2.x.
35
- ```ruby
36
- gem 'sidekiq-ent', '< 3'
37
- ```
data/Ent-Changes.md DELETED
@@ -1,275 +0,0 @@
1
- # Sidekiq Enterprise Changelog
2
-
3
- [Sidekiq Changes](https://github.com/mperham/sidekiq/blob/master/Changes.md) | [Sidekiq Pro Changes](https://github.com/mperham/sidekiq/blob/master/Pro-Changes.md) | [Sidekiq Enterprise Changes](https://github.com/mperham/sidekiq/blob/master/Ent-Changes.md)
4
-
5
- Please see [sidekiq.org](https://sidekiq.org) for more details and how to buy.
6
-
7
- 2.1.1
8
- -------------
9
-
10
- - Add optional **app preload** in swarm, saves even more memory [#4646]
11
- - Fix incorrect queue tags in historical metrics [#4377]
12
-
13
- 2.1.0
14
- -------------
15
-
16
- - Move historical metrics to use tags rather than interpolating name [#4377]
17
- ```
18
- sidekiq.enqueued.#{name} -> sidekiq.queue.size with tag queue:#{name}
19
- sidekiq.latency.#{name} -> sidekiq.queue.latency with tag queue:#{name}
20
- ```
21
- - Remove `concurrent-ruby` gem dependency [#4586]
22
- - Add systemd `Type=notify` support for swarm [#4511]
23
- - Length swarm's boot timeout to 60 sec [#4544]
24
- - Add NL locale
25
-
26
- 2.0.1
27
- -------------
28
-
29
- - Periodic job registration API adjusted to avoid loading classes in initializer [#4271]
30
- - Remove support for deprecated ENV variables (COUNT, MAXMEM\_MB, INDEX) in swarm code
31
-
32
- 2.0.0
33
- -------------
34
-
35
- - Except for the [newly required credentials](https://github.com/mperham/sidekiq/issues/4232), Sidekiq Enterprise 2.0 does
36
- not have any significant migration steps.
37
- - Sidekiq Enterprise must now be started with valid license credentials. [#4232]
38
- - Call `GC.compact` if possible in sidekiqswarm before forking [#4181]
39
- - Changes for forward-compatibility with Sidekiq 6.0.
40
- - Add death handler to remove any lingering unique locks [#4162]
41
- - Backoff can now be customized per rate limiter [#4219]
42
- - Code formatting changes for StandardRB
43
-
44
- 1.8.1
45
- -------------
46
-
47
- - Fix excessive lock reclaims with concurrent limiter [#4105]
48
- - 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.
49
-
50
- 1.8.0
51
- -------------
52
-
53
- - Require Sidekiq Pro 4.0 and Sidekiq 5.2.
54
- - Refactor historical metrics API to use revamped Statsd support in Sidekiq Pro
55
- - Add a gauge to historical metrics for `default` queue latency [#4079]
56
-
57
- 1.7.2
58
- -------------
59
-
60
- - Add PT and JA translations
61
- - Fix elapsed time calculations to use monotonic clock [#4000, sj26]
62
- - Fix edge case where flapping leadership would cause old periodic
63
- jobs to be fired once [#3974]
64
- - Add support for sidekiqswarm memory monitoring on FreeBSD [#3884]
65
-
66
- 1.7.1
67
- -------------
68
-
69
- - Fix Lua error in concurrent rate limiter under heavy contention
70
- - Remove superfluous `freeze` calls on Strings [#3759]
71
-
72
- 1.7.0
73
- -------------
74
-
75
- - **NEW FEATURE** [Rolling restarts](https://github.com/mperham/sidekiq/wiki/Ent-Rolling-Restarts) - great for long running jobs!
76
- - Adjust middleware so unique jobs that don't push aren't registered in a Batch [#3662]
77
- - Add new unlimited rate limiter, useful for testing [#3743]
78
- ```ruby
79
- limiter = Sidekiq::Limiter.unlimited(...any args...)
80
- ```
81
-
82
- 1.6.1
83
- -------------
84
-
85
- - Fix crash in rate limiter middleware when used with custom exceptions [#3604]
86
-
87
- 1.6.0
88
- -------------
89
-
90
- - Show process "leader" tag on Busy page, requires Sidekiq 5.0.2 [#2867]
91
- - Capture custom metrics with the `save_history` API. [#2815]
92
- - Implement new `unique_until: 'start'` policy option. [#3471]
93
-
94
- 1.5.4
95
- -------------
96
-
97
- - Fix broken Cron page in Web UI [#3458]
98
-
99
- 1.5.3
100
- -------------
101
-
102
- - Remove dependency on the algorithms gem [#3446]
103
- - Allow user to specify max memory in megabytes with SIDEKIQ\_MAXMEM\_MB [#3451]
104
- - Implement logic to detect app startup failure, sidekiqswarm will exit
105
- rather than try to restart the app forever [#3450]
106
- - Another fix for doubly-encrypted arguments [#3368]
107
-
108
- 1.5.2
109
- -------------
110
-
111
- - Fix encrypted arguments double-encrypted by retry or rate limiting [#3368]
112
- - Fix leak in concurrent rate limiter, run this in Rails console to clean up existing data [#3323]
113
- ```ruby
114
- expiry = 1.month.to_i; Sidekiq::Limiter.redis { |c| c.scan_each(match: "lmtr-cfree-*") { |key| c.expire(key, expiry) } }
115
- ```
116
-
117
- 1.5.1
118
- -------------
119
-
120
- - Fix issue with census startup when not using Bundler configuration for
121
- source credentials.
122
-
123
- 1.5.0
124
- -------------
125
-
126
- - Add new web authorization API [#3251]
127
- - Update all sidekiqswarm env vars to use SIDEKIQ\_ prefix [#3218]
128
- - Add census reporting, the leader will ping contribsys nightly with aggregate usage metrics
129
-
130
- 1.4.0
131
- -------------
132
-
133
- - No functional changes, require latest Sidekiq and Sidekiq Pro versions
134
-
135
- 1.3.2
136
- -------------
137
-
138
- - Upgrade encryption to use OpenSSL's more secure GCM mode. [#3060]
139
-
140
- 1.3.1
141
- -------------
142
-
143
- - Fix multi-process memory monitoring on CentOS 6.x [#3063]
144
- - Polish the new encryption feature a bit.
145
-
146
- 1.3.0
147
- -------------
148
-
149
- - **BETA** [New encryption feature](https://github.com/mperham/sidekiq/wiki/Ent-Encryption)
150
- which automatically encrypts the last argument of a Worker, aka the secret bag.
151
-
152
- 1.2.4
153
- -------------
154
-
155
- - Fix issue causing some minutely jobs to execute every other minute.
156
- - Log a warning if slow periodic processing causes us to miss a clock tick.
157
-
158
- 1.2.3
159
- -------------
160
-
161
- - Periodic jobs could stop executing until process restart if Redis goes down [#3047]
162
-
163
- 1.2.2
164
- -------------
165
-
166
- - Add API to check if a unique lock is present. See [#2932] for details.
167
- - Tune concurrent limiters to minimize thread thrashing under heavy contention. [#2944]
168
- - Add option for tuning which Bundler groups get preloaded with `sidekiqswarm` [#3025]
169
- ```
170
- SIDEKIQ_PRELOAD=default,production bin/sidekiqswarm ...
171
- # Use an empty value for maximum application compatibility
172
- SIDEKIQ_PRELOAD= bin/sidekiqswarm ...
173
- ```
174
-
175
- 1.2.1
176
- -------------
177
-
178
- - Multi-Process mode can now monitor the RSS memory of children and
179
- restart any that grow too large. To limit children to 1GB each:
180
- ```
181
- MAXMEM_KB=1048576 COUNT=2 bundle exec sidekiqswarm ...
182
- ```
183
-
184
- 1.2.0
185
- -------------
186
-
187
- - **NEW FEATURE** Multi-process mode! Sidekiq Enterprise can now fork multiple worker
188
- processes, enabling significant memory savings. See the [wiki
189
- documentation](https://github.com/mperham/sidekiq/wiki/Ent-Multi-Process) for details.
190
-
191
-
192
- 0.7.10
193
- -------------
194
-
195
- - More precise gemspec dependency versioning
196
-
197
- 1.1.0
198
- -------------
199
-
200
- - **NEW FEATURE** Historical queue metrics, [documented in the wiki](https://github.com/mperham/sidekiq/wiki/Ent-Historical-Metrics) [#2719]
201
-
202
- 0.7.9, 1.0.2
203
- -------------
204
-
205
- - Window limiters can now accept arbitrary window sizes [#2686]
206
- - Fix race condition in window limiters leading to non-stop OverLimit [#2704]
207
- - Fix invalid overage counts when nesting concurrent limiters
208
-
209
- 1.0.1
210
- ----------
211
-
212
- - Fix crash in periodic subsystem when a follower shuts down, thanks
213
- to @justinko for reporting.
214
-
215
- 1.0.0
216
- ----------
217
-
218
- - Enterprise 1.x targets Sidekiq 4.x.
219
- - Rewrite several features to remove Celluloid dependency. No
220
- functional changes.
221
-
222
- 0.7.8
223
- ----------
224
-
225
- - Fix `unique_for: false` [#2658]
226
-
227
-
228
- 0.7.7
229
- ----------
230
-
231
- - Enterprise 0.x targets Sidekiq 3.x.
232
- - Fix racy shutdown event which could lead to disappearing periodic
233
- jobs, requires Sidekiq >= 3.5.3.
234
- - Add new :leader event which is fired when a process gains leadership.
235
-
236
- 0.7.6
237
- ----------
238
-
239
- - Redesign how overrated jobs are rescheduled to avoid creating new
240
- jobs. [#2619]
241
-
242
- 0.7.5
243
- ----------
244
-
245
- - Fix dynamic creation of concurrent limiters [#2617]
246
-
247
- 0.7.4
248
- ----------
249
- - Add additional check to prevent duplicate periodic job creation
250
- - Allow user-specified TTLs for rate limiters [#2607]
251
- - Paginate rate limiter index page [#2606]
252
-
253
- 0.7.3
254
- ----------
255
-
256
- - Rework `Sidekiq::Limiter` redis handling to match global redis handling.
257
- - Allow user to customize rate limit backoff logic and handle custom
258
- rate limit errors.
259
- - Fix scalability issue with Limiter index page.
260
-
261
- 0.7.2
262
- ----------
263
-
264
- - Fix typo which prevented limiters with '0' in their names.
265
-
266
- 0.7.1
267
- ----------
268
-
269
- - Fix issue where unique scheduled jobs can't be enqueued upon schedule
270
- due to the existing unique lock. [#2499]
271
-
272
- 0.7.0
273
- ----------
274
-
275
- Initial release.
data/Gemfile DELETED
@@ -1,24 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
4
-
5
- gem "rake"
6
- gem "redis-namespace"
7
- gem "rails", ">= 6.0.2"
8
- gem "sqlite3", platforms: :ruby
9
- gem "activerecord-jdbcsqlite3-adapter", platforms: :jruby
10
-
11
- group :test do
12
- gem "minitest"
13
- gem "simplecov"
14
- gem "codecov", require: false
15
- end
16
-
17
- group :development, :test do
18
- gem "standard"
19
- end
20
-
21
- group :load_test do
22
- gem "hiredis"
23
- gem "toxiproxy"
24
- end
data/Gemfile.lock DELETED
@@ -1,208 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- sidekiq (6.1.1)
5
- connection_pool (>= 2.2.2)
6
- rack (~> 2.0)
7
- redis (>= 4.2.0)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- actioncable (6.0.3.1)
13
- actionpack (= 6.0.3.1)
14
- nio4r (~> 2.0)
15
- websocket-driver (>= 0.6.1)
16
- actionmailbox (6.0.3.1)
17
- actionpack (= 6.0.3.1)
18
- activejob (= 6.0.3.1)
19
- activerecord (= 6.0.3.1)
20
- activestorage (= 6.0.3.1)
21
- activesupport (= 6.0.3.1)
22
- mail (>= 2.7.1)
23
- actionmailer (6.0.3.1)
24
- actionpack (= 6.0.3.1)
25
- actionview (= 6.0.3.1)
26
- activejob (= 6.0.3.1)
27
- mail (~> 2.5, >= 2.5.4)
28
- rails-dom-testing (~> 2.0)
29
- actionpack (6.0.3.1)
30
- actionview (= 6.0.3.1)
31
- activesupport (= 6.0.3.1)
32
- rack (~> 2.0, >= 2.0.8)
33
- rack-test (>= 0.6.3)
34
- rails-dom-testing (~> 2.0)
35
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
36
- actiontext (6.0.3.1)
37
- actionpack (= 6.0.3.1)
38
- activerecord (= 6.0.3.1)
39
- activestorage (= 6.0.3.1)
40
- activesupport (= 6.0.3.1)
41
- nokogiri (>= 1.8.5)
42
- actionview (6.0.3.1)
43
- activesupport (= 6.0.3.1)
44
- builder (~> 3.1)
45
- erubi (~> 1.4)
46
- rails-dom-testing (~> 2.0)
47
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
48
- activejob (6.0.3.1)
49
- activesupport (= 6.0.3.1)
50
- globalid (>= 0.3.6)
51
- activemodel (6.0.3.1)
52
- activesupport (= 6.0.3.1)
53
- activerecord (6.0.3.1)
54
- activemodel (= 6.0.3.1)
55
- activesupport (= 6.0.3.1)
56
- activerecord-jdbc-adapter (60.1-java)
57
- activerecord (~> 6.0.0)
58
- activerecord-jdbcsqlite3-adapter (60.1-java)
59
- activerecord-jdbc-adapter (= 60.1)
60
- jdbc-sqlite3 (~> 3.8, < 3.30)
61
- activestorage (6.0.3.1)
62
- actionpack (= 6.0.3.1)
63
- activejob (= 6.0.3.1)
64
- activerecord (= 6.0.3.1)
65
- marcel (~> 0.3.1)
66
- activesupport (6.0.3.1)
67
- concurrent-ruby (~> 1.0, >= 1.0.2)
68
- i18n (>= 0.7, < 2)
69
- minitest (~> 5.1)
70
- tzinfo (~> 1.1)
71
- zeitwerk (~> 2.2, >= 2.2.2)
72
- ast (2.4.1)
73
- builder (3.2.4)
74
- codecov (0.1.17)
75
- json
76
- simplecov
77
- url
78
- concurrent-ruby (1.1.6)
79
- connection_pool (2.2.3)
80
- crass (1.0.6)
81
- docile (1.3.2)
82
- erubi (1.9.0)
83
- globalid (0.4.2)
84
- activesupport (>= 4.2.0)
85
- hiredis (0.6.3)
86
- hiredis (0.6.3-java)
87
- i18n (1.8.2)
88
- concurrent-ruby (~> 1.0)
89
- jdbc-sqlite3 (3.28.0)
90
- json (2.3.0)
91
- json (2.3.0-java)
92
- loofah (2.5.0)
93
- crass (~> 1.0.2)
94
- nokogiri (>= 1.5.9)
95
- mail (2.7.1)
96
- mini_mime (>= 0.1.1)
97
- marcel (0.3.3)
98
- mimemagic (~> 0.3.2)
99
- method_source (0.9.2)
100
- mimemagic (0.3.5)
101
- mini_mime (1.0.2)
102
- mini_portile2 (2.4.0)
103
- minitest (5.14.1)
104
- nio4r (2.5.2)
105
- nio4r (2.5.2-java)
106
- nokogiri (1.10.9)
107
- mini_portile2 (~> 2.4.0)
108
- nokogiri (1.10.9-java)
109
- parallel (1.19.2)
110
- parser (2.7.1.3)
111
- ast (~> 2.4.0)
112
- rack (2.2.2)
113
- rack-test (1.1.0)
114
- rack (>= 1.0, < 3)
115
- rails (6.0.3.1)
116
- actioncable (= 6.0.3.1)
117
- actionmailbox (= 6.0.3.1)
118
- actionmailer (= 6.0.3.1)
119
- actionpack (= 6.0.3.1)
120
- actiontext (= 6.0.3.1)
121
- actionview (= 6.0.3.1)
122
- activejob (= 6.0.3.1)
123
- activemodel (= 6.0.3.1)
124
- activerecord (= 6.0.3.1)
125
- activestorage (= 6.0.3.1)
126
- activesupport (= 6.0.3.1)
127
- bundler (>= 1.3.0)
128
- railties (= 6.0.3.1)
129
- sprockets-rails (>= 2.0.0)
130
- rails-dom-testing (2.0.3)
131
- activesupport (>= 4.2.0)
132
- nokogiri (>= 1.6)
133
- rails-html-sanitizer (1.3.0)
134
- loofah (~> 2.3)
135
- railties (6.0.3.1)
136
- actionpack (= 6.0.3.1)
137
- activesupport (= 6.0.3.1)
138
- method_source
139
- rake (>= 0.8.7)
140
- thor (>= 0.20.3, < 2.0)
141
- rainbow (3.0.0)
142
- rake (13.0.1)
143
- redis (4.2.0)
144
- redis-namespace (1.7.0)
145
- redis (>= 3.0.4)
146
- regexp_parser (1.7.1)
147
- rexml (3.2.4)
148
- rubocop (0.85.1)
149
- parallel (~> 1.10)
150
- parser (>= 2.7.0.1)
151
- rainbow (>= 2.2.2, < 4.0)
152
- regexp_parser (>= 1.7)
153
- rexml
154
- rubocop-ast (>= 0.0.3)
155
- ruby-progressbar (~> 1.7)
156
- unicode-display_width (>= 1.4.0, < 2.0)
157
- rubocop-ast (0.0.3)
158
- parser (>= 2.7.0.1)
159
- rubocop-performance (1.6.1)
160
- rubocop (>= 0.71.0)
161
- ruby-progressbar (1.10.1)
162
- simplecov (0.18.5)
163
- docile (~> 1.1)
164
- simplecov-html (~> 0.11)
165
- simplecov-html (0.12.2)
166
- sprockets (4.0.0)
167
- concurrent-ruby (~> 1.0)
168
- rack (> 1, < 3)
169
- sprockets-rails (3.2.1)
170
- actionpack (>= 4.0)
171
- activesupport (>= 4.0)
172
- sprockets (>= 3.0.0)
173
- sqlite3 (1.4.2)
174
- standard (0.4.7)
175
- rubocop (~> 0.85.0)
176
- rubocop-performance (~> 1.6.0)
177
- thor (1.0.1)
178
- thread_safe (0.3.6)
179
- thread_safe (0.3.6-java)
180
- toxiproxy (1.0.3)
181
- tzinfo (1.2.7)
182
- thread_safe (~> 0.1)
183
- unicode-display_width (1.7.0)
184
- url (0.3.2)
185
- websocket-driver (0.7.2)
186
- websocket-extensions (>= 0.1.0)
187
- websocket-driver (0.7.2-java)
188
- websocket-extensions (>= 0.1.0)
189
- websocket-extensions (0.1.4)
190
- zeitwerk (2.3.0)
191
-
192
- PLATFORMS
193
- java
194
- ruby
195
-
196
- DEPENDENCIES
197
- activerecord-jdbcsqlite3-adapter
198
- codecov
199
- hiredis
200
- minitest
201
- rails (>= 6.0.2)
202
- rake
203
- redis-namespace
204
- sidekiq!
205
- simplecov
206
- sqlite3
207
- standard
208
- toxiproxy