sidekiq 3.4.1 → 4.0.0
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.
- checksums.yaml +4 -4
- data/4.0-Upgrade.md +50 -0
- data/COMM-LICENSE +55 -45
- data/Changes.md +73 -1
- data/Ent-Changes.md +66 -0
- data/Gemfile +7 -1
- data/Pro-2.0-Upgrade.md +2 -2
- data/Pro-3.0-Upgrade.md +46 -0
- data/Pro-Changes.md +65 -2
- data/README.md +8 -9
- data/bin/sidekiq +5 -0
- data/bin/sidekiqctl +8 -2
- data/bin/sidekiqload +167 -0
- data/lib/sidekiq/api.rb +29 -31
- data/lib/sidekiq/cli.rb +41 -42
- data/lib/sidekiq/client.rb +5 -10
- data/lib/sidekiq/fetch.rb +35 -111
- data/lib/sidekiq/launcher.rb +102 -42
- data/lib/sidekiq/manager.rb +78 -180
- data/lib/sidekiq/middleware/server/logging.rb +10 -5
- data/lib/sidekiq/middleware/server/retry_jobs.rb +5 -5
- data/lib/sidekiq/processor.rb +126 -97
- data/lib/sidekiq/redis_connection.rb +23 -5
- data/lib/sidekiq/scheduled.rb +47 -26
- data/lib/sidekiq/testing.rb +96 -17
- data/lib/sidekiq/util.rb +20 -0
- data/lib/sidekiq/version.rb +1 -1
- data/lib/sidekiq/web.rb +17 -1
- data/lib/sidekiq/web_helpers.rb +26 -4
- data/lib/sidekiq/worker.rb +14 -0
- data/lib/sidekiq.rb +37 -14
- data/sidekiq.gemspec +11 -11
- data/test/helper.rb +45 -10
- data/test/test_actors.rb +137 -0
- data/test/test_api.rb +388 -388
- data/test/test_cli.rb +29 -59
- data/test/test_client.rb +60 -135
- data/test/test_extensions.rb +29 -23
- data/test/test_fetch.rb +2 -57
- data/test/test_launcher.rb +80 -0
- data/test/test_logging.rb +1 -1
- data/test/test_manager.rb +16 -131
- data/test/test_middleware.rb +3 -5
- data/test/test_processor.rb +110 -76
- data/test/test_rails.rb +21 -0
- data/test/test_redis_connection.rb +0 -1
- data/test/test_retry.rb +114 -162
- data/test/test_scheduled.rb +11 -17
- data/test/test_scheduling.rb +20 -42
- data/test/test_sidekiq.rb +46 -16
- data/test/test_testing.rb +80 -20
- data/test/test_testing_fake.rb +68 -8
- data/test/test_testing_inline.rb +3 -3
- data/test/test_util.rb +16 -0
- data/test/test_web.rb +17 -3
- data/test/test_web_helpers.rb +3 -2
- data/web/assets/images/favicon.ico +0 -0
- data/web/assets/javascripts/application.js +6 -1
- data/web/assets/javascripts/dashboard.js +2 -8
- data/web/assets/javascripts/locales/jquery.timeago.pt-br.js +14 -14
- data/web/assets/stylesheets/application.css +33 -56
- data/web/locales/de.yml +1 -1
- data/web/locales/en.yml +1 -0
- data/web/locales/{no.yml → nb.yml} +10 -2
- data/web/locales/uk.yml +76 -0
- data/web/views/_footer.erb +2 -7
- data/web/views/_job_info.erb +1 -1
- data/web/views/_nav.erb +2 -2
- data/web/views/_poll_js.erb +5 -0
- data/web/views/{_poll.erb → _poll_link.erb} +0 -3
- data/web/views/busy.erb +2 -1
- data/web/views/dead.erb +1 -0
- data/web/views/layout.erb +2 -0
- data/web/views/morgue.erb +3 -0
- data/web/views/queue.erb +1 -0
- data/web/views/queues.erb +1 -0
- data/web/views/retries.erb +3 -0
- data/web/views/retry.erb +1 -0
- data/web/views/scheduled.erb +1 -0
- data/web/views/scheduled_job_info.erb +1 -0
- metadata +81 -47
- data/lib/sidekiq/actor.rb +0 -39
- data/test/test_worker_generator.rb +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 154fd4d987e5f7c32fad42a20176d27e958bd49f
|
4
|
+
data.tar.gz: a33449473a2210e1f79e3f814c50f6fe982ff101
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 264d2c5a210a978ca8ce9f2a78962cc4f4d62966444788b7d942644881baec212133123f3434ffafdcc21d5bd9c0130eef007195a945f86771a33da5b2d1fbea
|
7
|
+
data.tar.gz: 6e651a3d38dd4518a3db01abd5febdb9a4c739d16873f2ce3ffa4998bd5f5a2285303437cc6f489cb43d032590bf741006d50170470c333ed31cfa62c1168178
|
data/4.0-Upgrade.md
ADDED
@@ -0,0 +1,50 @@
|
|
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.
|
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
|
+
* There's a new testing API based off the `Sidekiq::Queues` namespace. All
|
29
|
+
assertions made against the Worker class still work as expected.
|
30
|
+
```ruby
|
31
|
+
assert_equal 0, Sidekiq::Queues["default"].size
|
32
|
+
HardWorker.perform_async("log")
|
33
|
+
assert_equal 1, Sidekiq::Queues["default"].size
|
34
|
+
assert_equal "log", Sidekiq::Queues["default"].first['args'][0]
|
35
|
+
Sidekiq::Queues.clear_all
|
36
|
+
```
|
37
|
+
|
38
|
+
## Upgrade
|
39
|
+
|
40
|
+
First, make sure you are using Redis 2.8 or greater. Next:
|
41
|
+
|
42
|
+
* Upgrade to the latest Sidekiq 3.x.
|
43
|
+
```ruby
|
44
|
+
gem 'sidekiq', '< 4'
|
45
|
+
```
|
46
|
+
* Fix any deprecation warnings you see.
|
47
|
+
* Upgrade to 4.x.
|
48
|
+
```ruby
|
49
|
+
gem 'sidekiq', '< 5'
|
50
|
+
```
|
data/COMM-LICENSE
CHANGED
@@ -1,85 +1,95 @@
|
|
1
|
-
|
1
|
+
END-USER LICENSE AGREEMENT
|
2
2
|
|
3
|
-
|
3
|
+
------------------------------------------------------------------------------
|
4
4
|
|
5
|
-
|
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
6
|
|
7
|
-
|
7
|
+
------------------------------------------------------------------------------
|
8
8
|
|
9
|
-
|
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
10
|
|
11
|
-
|
11
|
+
1. License Grant
|
12
12
|
|
13
|
-
|
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
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
|
-
|
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.
|
18
18
|
|
19
|
-
You will not owe
|
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.
|
20
20
|
|
21
|
-
|
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.
|
22
22
|
|
23
|
-
|
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”).
|
24
24
|
|
25
|
-
|
25
|
+
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
26
|
|
27
|
-
|
27
|
+
3. Restricted Uses.
|
28
28
|
|
29
|
-
|
29
|
+
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.
|
30
|
+
|
31
|
+
3.2 UNDER NO CIRCUMSTANCES MAY YOU USE THE SOFTWARE FOR A PRODUCT THAT IS INTENDED FOR SOFTWARE OR APPLICATION DEVELOPMENT PURPOSES.
|
30
32
|
|
31
33
|
The Open Source version of the Software (“LGPL Version”) is licensed
|
32
34
|
under the terms of the GNU Lesser General Public License versions 3.0
|
33
|
-
(“LGPL”) and not under this
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
35
|
+
(“LGPL”) and not under this EULA.
|
36
|
+
|
37
|
+
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.
|
38
|
+
|
39
|
+
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).
|
40
|
+
|
41
|
+
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/Pro-Support), support and maintenance services may be included with the purchase of your license subscription.
|
42
|
+
|
43
|
+
7. Term of Agreement.
|
44
|
+
|
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.
|
46
|
+
|
47
|
+
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
|
+
|
49
|
+
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.
|
40
50
|
|
41
|
-
|
51
|
+
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.
|
52
|
+
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.
|
42
53
|
|
43
|
-
|
54
|
+
9. Limitation of Liability.
|
44
55
|
|
45
|
-
|
56
|
+
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.
|
46
57
|
|
47
|
-
|
58
|
+
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.
|
48
59
|
|
49
|
-
|
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.
|
50
61
|
|
51
|
-
|
62
|
+
11. Acknowledgements.
|
52
63
|
|
53
|
-
|
64
|
+
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.
|
54
65
|
|
55
|
-
We or a certified auditor acting on
|
66
|
+
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.
|
56
67
|
|
57
|
-
|
68
|
+
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.
|
58
69
|
|
59
|
-
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.
|
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.
|
60
71
|
|
61
|
-
10. PAYMENT AND TAXES
|
62
72
|
|
63
|
-
|
73
|
+
13. Miscellaneous
|
64
74
|
|
65
|
-
|
75
|
+
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.
|
66
76
|
|
67
|
-
|
77
|
+
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.
|
68
78
|
|
69
|
-
|
79
|
+
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.
|
70
80
|
|
71
|
-
|
81
|
+
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.
|
72
82
|
|
73
|
-
You
|
83
|
+
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.
|
74
84
|
|
75
|
-
|
85
|
+
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.
|
76
86
|
|
77
|
-
|
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.
|
78
88
|
|
79
|
-
If any provision
|
89
|
+
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.
|
80
90
|
|
81
|
-
|
91
|
+
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.
|
82
92
|
|
83
|
-
|
93
|
+
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.
|
84
94
|
|
85
|
-
|
95
|
+
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/Changes.md
CHANGED
@@ -1,3 +1,75 @@
|
|
1
|
+
# Sidekiq Changes
|
2
|
+
|
3
|
+
4.0.0.pre1
|
4
|
+
-----------
|
5
|
+
|
6
|
+
- Sidekiq's internals have been completely overhauled for performance
|
7
|
+
and to remove dependencies. This has resulted in major speedups, as
|
8
|
+
[detailed on my blog](http://www.mikeperham.com/2015/10/14/optimizing-sidekiq/).
|
9
|
+
- See the [4.0 upgrade notes](4.0-Upgrade.md) for more detail.
|
10
|
+
- There's a new testing API based off the `Sidekiq::Queues` namespace. All
|
11
|
+
assertions made against the Worker class still work as expected.
|
12
|
+
[#2659, brandonhilkert]
|
13
|
+
```ruby
|
14
|
+
assert_equal 0, Sidekiq::Queues["default"].size
|
15
|
+
HardWorker.perform_async("log")
|
16
|
+
assert_equal 1, Sidekiq::Queues["default"].size
|
17
|
+
assert_equal "log", Sidekiq::Queues["default"].first['args'][0]
|
18
|
+
Sidekiq::Queues.clear_all
|
19
|
+
```
|
20
|
+
|
21
|
+
3.5.3
|
22
|
+
-----------
|
23
|
+
|
24
|
+
- Adjust shutdown event to run in parallel with the rest of system shutdown. [#2635]
|
25
|
+
|
26
|
+
3.5.2
|
27
|
+
-----------
|
28
|
+
|
29
|
+
- **Sidekiq 3 is now in maintenance mode**, only major bugs will be fixed.
|
30
|
+
- The exception triggering a retry is now passed into `sidekiq_retry_in`,
|
31
|
+
allowing you to retry more frequently for certain types of errors.
|
32
|
+
[#2619, kreynolds]
|
33
|
+
```ruby
|
34
|
+
sidekiq_retry_in do |count, ex|
|
35
|
+
case ex
|
36
|
+
when RuntimeError
|
37
|
+
5 * count
|
38
|
+
else
|
39
|
+
10 * count
|
40
|
+
end
|
41
|
+
end
|
42
|
+
```
|
43
|
+
|
44
|
+
3.5.1
|
45
|
+
-----------
|
46
|
+
|
47
|
+
- **FIX MEMORY LEAK** Under rare conditions, threads may leak [#2598, gazay]
|
48
|
+
- Add Ukranian locale [#2561, elrakita]
|
49
|
+
- Disconnect and retry Redis operations if we see a READONLY error [#2550]
|
50
|
+
- Add server middleware testing harness; see [wiki](https://github.com/mperham/sidekiq/wiki/Testing#testing-server-middleware) [#2534, ryansch]
|
51
|
+
|
52
|
+
3.5.0
|
53
|
+
-----------
|
54
|
+
|
55
|
+
- Polished new banner! [#2522, firedev]
|
56
|
+
- Upgrade to Celluloid 0.17. [#2420, digitalextremist]
|
57
|
+
- Activate sessions in Sinatra for CSRF protection, requires Rails
|
58
|
+
monkeypatch due to rails/rails#15843. [#2460, jc00ke]
|
59
|
+
|
60
|
+
3.4.2
|
61
|
+
-----------
|
62
|
+
|
63
|
+
- Don't allow `Sidekiq::Worker` in ActiveJob::Base classes. [#2424]
|
64
|
+
- Safer display of job data in Web UI [#2405]
|
65
|
+
- Fix CSRF vulnerability in Web UI, thanks to Egor Homakov for
|
66
|
+
reporting. [#2422] If you are running the Web UI as a standalone Rack app,
|
67
|
+
ensure you have a [session middleware
|
68
|
+
configured](https://github.com/mperham/sidekiq/wiki/Monitoring#standalone):
|
69
|
+
```ruby
|
70
|
+
use Rack::Session::Cookie, :secret => "some unique secret string here"
|
71
|
+
```
|
72
|
+
|
1
73
|
3.4.1
|
2
74
|
-----------
|
3
75
|
|
@@ -380,7 +452,7 @@ middleware, see 3.0-Upgrade.md.**
|
|
380
452
|
[Testing](https://github.com/mperham/sidekiq/wiki/Testing) for detail. [#1193]
|
381
453
|
- The Retries table has a new column for the error message.
|
382
454
|
- The Web UI topbar now contains the status and live poll button.
|
383
|
-
- Orphaned worker records are now auto-vacuumed when you
|
455
|
+
- Orphaned worker records are now auto-vacuumed when you visit the
|
384
456
|
Workers page in the Web UI.
|
385
457
|
- Sidekiq.default\_worker\_options allows you to configure default
|
386
458
|
options for all Sidekiq worker types.
|
data/Ent-Changes.md
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
Sidekiq Enterprise Changelog
|
2
|
+
=======================
|
3
|
+
|
4
|
+
Please see [http://sidekiq.org/](http://sidekiq.org/) for more details and how to buy.
|
5
|
+
|
6
|
+
1.0.0.pre1
|
7
|
+
----------
|
8
|
+
|
9
|
+
- Enterprise 1.x targets Sidekiq 4.x.
|
10
|
+
- Rewrite several features to remove Celluloid dependency. No
|
11
|
+
functional changes.
|
12
|
+
|
13
|
+
0.7.8
|
14
|
+
----------
|
15
|
+
|
16
|
+
- Fix `unique_for: false` [#2658]
|
17
|
+
|
18
|
+
|
19
|
+
0.7.7
|
20
|
+
----------
|
21
|
+
|
22
|
+
- Enterprise 0.x targets Sidekiq 3.x.
|
23
|
+
- Fix racy shutdown event which could lead to disappearing periodic
|
24
|
+
jobs, requires Sidekiq >= 3.5.3.
|
25
|
+
- Add new :leader event which is fired when a process gains leadership.
|
26
|
+
|
27
|
+
0.7.6
|
28
|
+
----------
|
29
|
+
|
30
|
+
- Redesign how overrated jobs are rescheduled to avoid creating new
|
31
|
+
jobs. [#2619]
|
32
|
+
|
33
|
+
0.7.5
|
34
|
+
----------
|
35
|
+
|
36
|
+
- Fix dynamic creation of concurrent limiters [#2617]
|
37
|
+
|
38
|
+
0.7.4
|
39
|
+
----------
|
40
|
+
- Add additional check to prevent duplicate periodic job creation
|
41
|
+
- Allow user-specified TTLs for rate limiters [#2607]
|
42
|
+
- Paginate rate limiter index page [#2606]
|
43
|
+
|
44
|
+
0.7.3
|
45
|
+
----------
|
46
|
+
|
47
|
+
- Rework `Sidekiq::Limiter` redis handling to match global redis handling.
|
48
|
+
- Allow user to customize rate limit backoff logic and handle custom
|
49
|
+
rate limit errors.
|
50
|
+
- Fix scalability issue with Limiter index page.
|
51
|
+
|
52
|
+
0.7.2
|
53
|
+
----------
|
54
|
+
|
55
|
+
- Fix typo which prevented limiters with '0' in their names.
|
56
|
+
|
57
|
+
0.7.1
|
58
|
+
----------
|
59
|
+
|
60
|
+
- Fix issue where unique scheduled jobs can't be enqueued upon schedule
|
61
|
+
due to the existing unique lock. [#2499]
|
62
|
+
|
63
|
+
0.7.0
|
64
|
+
----------
|
65
|
+
|
66
|
+
Initial release.
|
data/Gemfile
CHANGED
@@ -1,10 +1,15 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
gemspec
|
3
3
|
|
4
|
+
gem 'rails', '~> 4.2'
|
5
|
+
gem 'simplecov'
|
6
|
+
gem 'minitest'
|
7
|
+
gem 'minitest-utils'
|
8
|
+
gem 'toxiproxy'
|
9
|
+
|
4
10
|
platforms :rbx do
|
5
11
|
gem 'rubysl', '~> 2.0' # if using anything in the ruby standard library
|
6
12
|
gem 'psych' # if using yaml
|
7
|
-
gem 'minitest' # if using minitest
|
8
13
|
gem 'rubinius-developer_tools' # if using any of coverage, debugger, profiler
|
9
14
|
end
|
10
15
|
|
@@ -14,6 +19,7 @@ end
|
|
14
19
|
|
15
20
|
platforms :mri do
|
16
21
|
gem 'pry-byebug'
|
22
|
+
gem 'ruby-prof'
|
17
23
|
end
|
18
24
|
|
19
25
|
platforms :jruby do
|
data/Pro-2.0-Upgrade.md
CHANGED
@@ -97,8 +97,8 @@ lots of jobs.
|
|
97
97
|
Sidekiq Pro functionality is affected by this change but some 3rd party
|
98
98
|
plugins might be.
|
99
99
|
- The Lua script used inside the reliable scheduler is not safe for use
|
100
|
-
with Redis Cluster
|
101
|
-
It is safe to use with a typical master/slave replication setup.
|
100
|
+
with Redis Cluster or other multi-master Redis solutions.
|
101
|
+
It is safe to use with Redis Sentinel or a typical master/slave replication setup.
|
102
102
|
|
103
103
|
**You no longer require anything to use the Reliability features.**
|
104
104
|
|
data/Pro-3.0-Upgrade.md
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
# Welcome to Sidekiq Pro 3.0!
|
2
|
+
|
3
|
+
Sidekiq Pro 3.0 is designed to work with Sidekiq 4.0.
|
4
|
+
|
5
|
+
## What's New
|
6
|
+
|
7
|
+
* **Redis 2.8.0 or greater is required.** Redis 2.8 was released two years
|
8
|
+
ago and contains **many** useful features which Sidekiq couldn't
|
9
|
+
leverage until now. **Redis 3.0.3 or greater is recommended** for large
|
10
|
+
scale use.
|
11
|
+
|
12
|
+
* Sidekiq Pro no longer uses Celluloid. If your application code uses Celluloid,
|
13
|
+
you will need to pull it in yourself.
|
14
|
+
|
15
|
+
* Pausing and unpausing queues is now instantaneous, no more polling!
|
16
|
+
|
17
|
+
* Reliable fetch has been re-implemented due to the fetch changes in
|
18
|
+
Sidekiq 4.0.
|
19
|
+
|
20
|
+
* Support for platforms without persistent hostnames. Since reliable fetch
|
21
|
+
normally requires a persistent hostname, you may disable hostname usage on
|
22
|
+
platforms like Heroku and Docker:
|
23
|
+
```ruby
|
24
|
+
Sidekiq.configure_server do |config|
|
25
|
+
config.options[:ephemeral_hostname] = true
|
26
|
+
config.reliable_fetch!
|
27
|
+
end
|
28
|
+
```
|
29
|
+
This option is enabled automatically if Heroku's DYNO environment variable is present.
|
30
|
+
Without a persistent hostname, each Sidekiq process **must** have its own unique index.
|
31
|
+
|
32
|
+
* The old 'sidekiq/notifications' features have been removed.
|
33
|
+
|
34
|
+
## Upgrade
|
35
|
+
|
36
|
+
First, make sure you are using Redis 2.8 or greater. Next:
|
37
|
+
|
38
|
+
* Upgrade to the latest Sidekiq Pro 2.x.
|
39
|
+
```ruby
|
40
|
+
gem 'sidekiq-pro', '< 3'
|
41
|
+
```
|
42
|
+
* Fix any deprecation warnings you see.
|
43
|
+
* Upgrade to 3.x.
|
44
|
+
```ruby
|
45
|
+
gem 'sidekiq-pro', '< 4'
|
46
|
+
```
|
data/Pro-Changes.md
CHANGED
@@ -1,11 +1,74 @@
|
|
1
1
|
Sidekiq Pro Changelog
|
2
2
|
=======================
|
3
3
|
|
4
|
-
Please see [http://sidekiq.org/
|
4
|
+
Please see [http://sidekiq.org/](http://sidekiq.org/) for more details and how to buy.
|
5
5
|
|
6
|
-
|
6
|
+
3.0.0.pre2
|
7
7
|
-----------
|
8
8
|
|
9
|
+
- Fix excessive connection usage by reliable fetch.
|
10
|
+
|
11
|
+
3.0.0.pre1
|
12
|
+
-----------
|
13
|
+
|
14
|
+
- See the [Pro 3.0 release notes](Pro-3.0-Upgrade.md).
|
15
|
+
|
16
|
+
2.1.3
|
17
|
+
-----------
|
18
|
+
|
19
|
+
- Don't enable strict priority if using weighted queueing like `-q a,1 -q b,1`
|
20
|
+
- Safer JSON mangling in Lua [#2639]
|
21
|
+
|
22
|
+
2.1.2
|
23
|
+
-----------
|
24
|
+
|
25
|
+
- Lock Sidekiq Pro 2.x to Sidekiq 3.x.
|
26
|
+
|
27
|
+
2.1.1
|
28
|
+
-----------
|
29
|
+
|
30
|
+
- Make ShardSet lazier so Redis can first be initialized at startup. [#2603]
|
31
|
+
|
32
|
+
|
33
|
+
2.1.0
|
34
|
+
-----------
|
35
|
+
|
36
|
+
- Explicit support for sharding batches. You list your Redis shards and
|
37
|
+
Sidekiq Pro will randomly spread batches across the shards. The BID
|
38
|
+
will indicate which shard contains the batch data. Jobs within a
|
39
|
+
batch may be spread across all shards too. [#2548, jonhyman]
|
40
|
+
- Officially deprecate Sidekiq::Notifications code. Notifications have
|
41
|
+
been undocumented for months now. [#2575]
|
42
|
+
|
43
|
+
|
44
|
+
2.0.8
|
45
|
+
-----------
|
46
|
+
|
47
|
+
- Fix reliable scheduler mangling large numeric arguments. Lua's CJSON
|
48
|
+
library cannot accurately encode numbers larger than 14 digits! [#2478]
|
49
|
+
|
50
|
+
2.0.7
|
51
|
+
-----------
|
52
|
+
|
53
|
+
- Optimize delete of enormous batches (100,000s of jobs) [#2458]
|
54
|
+
|
55
|
+
2.0.6, 1.9.3
|
56
|
+
--------------
|
57
|
+
|
58
|
+
- CSRF protection in Sidekiq 3.4.2 broke job filtering in the Web UI [#2442]
|
59
|
+
- Sidekiq Pro 1.x is now limited to Sidekiq < 3.5.0.
|
60
|
+
|
61
|
+
2.0.5
|
62
|
+
-----------
|
63
|
+
|
64
|
+
- Atomic scheduler now sets `enqueued_at` [#2414]
|
65
|
+
- Batches now account for jobs which are stopped by client middleware [#2406]
|
66
|
+
- Ignore redundant calls to `Sidekiq::Client.reliable_push!` [#2408]
|
67
|
+
|
68
|
+
2.0.4
|
69
|
+
-----------
|
70
|
+
|
71
|
+
- Reliable push now supports sharding [#2409]
|
9
72
|
- Reliable push now only catches Redis exceptions [#2307]
|
10
73
|
|
11
74
|
2.0.3
|