sidekiq 4.0.0 → 5.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/{Contributing.md → .github/contributing.md} +0 -0
- data/.github/issue_template.md +9 -0
- data/.gitignore +1 -0
- data/.travis.yml +12 -10
- data/4.0-Upgrade.md +4 -1
- data/5.0-Upgrade.md +56 -0
- data/COMM-LICENSE +1 -1
- data/Changes.md +236 -7
- data/Ent-Changes.md +111 -3
- data/Gemfile +7 -6
- data/Pro-3.0-Upgrade.md +5 -7
- data/Pro-Changes.md +162 -5
- data/README.md +31 -21
- data/Rakefile +5 -2
- data/bin/sidekiq +0 -1
- data/bin/sidekiqctl +1 -1
- data/bin/sidekiqload +15 -33
- data/code_of_conduct.md +50 -0
- data/lib/generators/sidekiq/templates/worker_spec.rb.erb +2 -2
- data/lib/generators/sidekiq/templates/worker_test.rb.erb +6 -6
- data/lib/sidekiq.rb +46 -21
- data/lib/sidekiq/api.rb +94 -30
- data/lib/sidekiq/cli.rb +38 -16
- data/lib/sidekiq/client.rb +32 -26
- data/lib/sidekiq/core_ext.rb +14 -0
- data/lib/sidekiq/delay.rb +21 -0
- data/lib/sidekiq/exception_handler.rb +2 -1
- data/lib/sidekiq/extensions/action_mailer.rb +1 -0
- data/lib/sidekiq/extensions/active_record.rb +1 -0
- data/lib/sidekiq/extensions/class_methods.rb +1 -0
- data/lib/sidekiq/extensions/generic_proxy.rb +8 -1
- data/lib/sidekiq/fetch.rb +2 -1
- data/lib/sidekiq/job_logger.rb +27 -0
- data/lib/sidekiq/job_retry.rb +235 -0
- data/lib/sidekiq/launcher.rb +42 -33
- data/lib/sidekiq/logging.rb +3 -1
- data/lib/sidekiq/manager.rb +9 -4
- data/lib/sidekiq/middleware/chain.rb +1 -0
- data/lib/sidekiq/middleware/i18n.rb +1 -0
- data/lib/sidekiq/middleware/server/active_record.rb +9 -0
- data/lib/sidekiq/paginator.rb +1 -0
- data/lib/sidekiq/processor.rb +73 -19
- data/lib/sidekiq/rails.rb +47 -25
- data/lib/sidekiq/redis_connection.rb +14 -3
- data/lib/sidekiq/scheduled.rb +12 -1
- data/lib/sidekiq/testing.rb +65 -13
- data/lib/sidekiq/testing/inline.rb +1 -0
- data/lib/sidekiq/util.rb +3 -15
- data/lib/sidekiq/version.rb +2 -1
- data/lib/sidekiq/web.rb +120 -184
- data/lib/sidekiq/web/action.rb +89 -0
- data/lib/sidekiq/web/application.rb +331 -0
- data/lib/sidekiq/{web_helpers.rb → web/helpers.rb} +57 -27
- data/lib/sidekiq/web/router.rb +100 -0
- data/lib/sidekiq/worker.rb +52 -11
- data/sidekiq.gemspec +12 -7
- data/web/assets/images/{status-sd8051fd480.png → status.png} +0 -0
- data/web/assets/javascripts/application.js +24 -20
- data/web/assets/javascripts/dashboard.js +11 -13
- data/web/assets/stylesheets/application-rtl.css +246 -0
- data/web/assets/stylesheets/application.css +362 -5
- data/web/assets/stylesheets/bootstrap-rtl.min.css +9 -0
- data/web/assets/stylesheets/bootstrap.css +4 -8
- data/web/locales/ar.yml +80 -0
- data/web/locales/cs.yml +11 -1
- data/web/locales/de.yml +1 -1
- data/web/locales/en.yml +2 -0
- data/web/locales/fa.yml +80 -0
- data/web/locales/fr.yml +21 -12
- data/web/locales/he.yml +79 -0
- data/web/locales/ja.yml +19 -10
- data/web/locales/ru.yml +3 -0
- data/web/locales/ur.yml +80 -0
- data/web/views/_footer.erb +2 -2
- data/web/views/_job_info.erb +5 -1
- data/web/views/_nav.erb +2 -2
- data/web/views/_paging.erb +1 -1
- data/web/views/busy.erb +14 -9
- data/web/views/dashboard.erb +5 -5
- data/web/views/dead.erb +1 -1
- data/web/views/layout.erb +13 -5
- data/web/views/morgue.erb +16 -12
- data/web/views/queue.erb +11 -11
- data/web/views/queues.erb +3 -3
- data/web/views/retries.erb +15 -13
- data/web/views/retry.erb +2 -2
- data/web/views/scheduled.erb +4 -4
- data/web/views/scheduled_job_info.erb +1 -1
- metadata +97 -148
- data/lib/sidekiq/middleware/server/logging.rb +0 -40
- data/lib/sidekiq/middleware/server/retry_jobs.rb +0 -206
- data/test/config.yml +0 -9
- data/test/env_based_config.yml +0 -11
- data/test/fake_env.rb +0 -0
- data/test/fixtures/en.yml +0 -2
- data/test/helper.rb +0 -74
- data/test/test_actors.rb +0 -137
- data/test/test_api.rb +0 -494
- data/test/test_cli.rb +0 -335
- data/test/test_client.rb +0 -194
- data/test/test_exception_handler.rb +0 -55
- data/test/test_extensions.rb +0 -126
- data/test/test_fetch.rb +0 -49
- data/test/test_launcher.rb +0 -80
- data/test/test_logging.rb +0 -34
- data/test/test_manager.rb +0 -49
- data/test/test_middleware.rb +0 -157
- data/test/test_processor.rb +0 -200
- data/test/test_rails.rb +0 -21
- data/test/test_redis_connection.rb +0 -126
- data/test/test_retry.rb +0 -325
- data/test/test_scheduled.rb +0 -114
- data/test/test_scheduling.rb +0 -49
- data/test/test_sidekiq.rb +0 -99
- data/test/test_testing.rb +0 -142
- data/test/test_testing_fake.rb +0 -331
- data/test/test_testing_inline.rb +0 -93
- data/test/test_util.rb +0 -16
- data/test/test_web.rb +0 -608
- data/test/test_web_helpers.rb +0 -53
- data/web/assets/images/bootstrap/glyphicons-halflings-white.png +0 -0
- data/web/assets/images/bootstrap/glyphicons-halflings.png +0 -0
- data/web/assets/images/status/active.png +0 -0
- data/web/assets/images/status/idle.png +0 -0
- data/web/assets/javascripts/locales/README.md +0 -27
- data/web/assets/javascripts/locales/jquery.timeago.ar.js +0 -96
- data/web/assets/javascripts/locales/jquery.timeago.bg.js +0 -18
- data/web/assets/javascripts/locales/jquery.timeago.bs.js +0 -49
- data/web/assets/javascripts/locales/jquery.timeago.ca.js +0 -18
- data/web/assets/javascripts/locales/jquery.timeago.cs.js +0 -18
- data/web/assets/javascripts/locales/jquery.timeago.cy.js +0 -20
- data/web/assets/javascripts/locales/jquery.timeago.da.js +0 -18
- data/web/assets/javascripts/locales/jquery.timeago.de.js +0 -18
- data/web/assets/javascripts/locales/jquery.timeago.el.js +0 -18
- data/web/assets/javascripts/locales/jquery.timeago.en-short.js +0 -20
- data/web/assets/javascripts/locales/jquery.timeago.en.js +0 -20
- data/web/assets/javascripts/locales/jquery.timeago.es.js +0 -18
- data/web/assets/javascripts/locales/jquery.timeago.et.js +0 -18
- data/web/assets/javascripts/locales/jquery.timeago.fa.js +0 -22
- data/web/assets/javascripts/locales/jquery.timeago.fi.js +0 -28
- data/web/assets/javascripts/locales/jquery.timeago.fr-short.js +0 -16
- data/web/assets/javascripts/locales/jquery.timeago.fr.js +0 -17
- data/web/assets/javascripts/locales/jquery.timeago.he.js +0 -18
- data/web/assets/javascripts/locales/jquery.timeago.hr.js +0 -49
- data/web/assets/javascripts/locales/jquery.timeago.hu.js +0 -18
- data/web/assets/javascripts/locales/jquery.timeago.hy.js +0 -18
- data/web/assets/javascripts/locales/jquery.timeago.id.js +0 -18
- data/web/assets/javascripts/locales/jquery.timeago.it.js +0 -16
- data/web/assets/javascripts/locales/jquery.timeago.ja.js +0 -19
- data/web/assets/javascripts/locales/jquery.timeago.ko.js +0 -17
- data/web/assets/javascripts/locales/jquery.timeago.lt.js +0 -20
- data/web/assets/javascripts/locales/jquery.timeago.mk.js +0 -20
- data/web/assets/javascripts/locales/jquery.timeago.nl.js +0 -20
- data/web/assets/javascripts/locales/jquery.timeago.no.js +0 -18
- data/web/assets/javascripts/locales/jquery.timeago.pl.js +0 -31
- data/web/assets/javascripts/locales/jquery.timeago.pt-br.js +0 -16
- data/web/assets/javascripts/locales/jquery.timeago.pt.js +0 -16
- data/web/assets/javascripts/locales/jquery.timeago.ro.js +0 -18
- data/web/assets/javascripts/locales/jquery.timeago.rs.js +0 -49
- data/web/assets/javascripts/locales/jquery.timeago.ru.js +0 -34
- data/web/assets/javascripts/locales/jquery.timeago.sk.js +0 -18
- data/web/assets/javascripts/locales/jquery.timeago.sl.js +0 -44
- data/web/assets/javascripts/locales/jquery.timeago.sv.js +0 -18
- data/web/assets/javascripts/locales/jquery.timeago.th.js +0 -20
- data/web/assets/javascripts/locales/jquery.timeago.tr.js +0 -16
- data/web/assets/javascripts/locales/jquery.timeago.uk.js +0 -34
- data/web/assets/javascripts/locales/jquery.timeago.uz.js +0 -19
- data/web/assets/javascripts/locales/jquery.timeago.zh-cn.js +0 -20
- data/web/assets/javascripts/locales/jquery.timeago.zh-tw.js +0 -20
- data/web/views/_poll_js.erb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2a9cd7270e53981aaf7b3f2639596ff042f5ae3
|
4
|
+
data.tar.gz: 7b6e4fbfee794de34d9b6b15772cbf085e05a65b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfaecc27ce4071e36b5ab994c27f59d85b4cf7f16ca05a5b786c79125c311f58fbb38b94f7e1c71e4dbf90e6645cb358102e8940a94881981f7bbc2578fd18ff
|
7
|
+
data.tar.gz: a98e9b87e5f4abe2580ea5fcb6f20ef1d28623eae9be4ca758d5f5b52c65dbef7a6b5df74f673449177f36494b9075573315c7ef6cd6b757ba6a59e825737833
|
File without changes
|
@@ -0,0 +1,9 @@
|
|
1
|
+
Ruby version:
|
2
|
+
Sidekiq / Pro / Enterprise version(s):
|
3
|
+
|
4
|
+
Please include your initializer and any error message with the full backtrace.
|
5
|
+
|
6
|
+
Are you using an old version?
|
7
|
+
Have you checked the changelog to see if your issue has been fixed in a later version?
|
8
|
+
|
9
|
+
https://github.com/mperham/sidekiq/blob/master/Changes.md
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -3,14 +3,16 @@ sudo: false
|
|
3
3
|
cache: bundler
|
4
4
|
services:
|
5
5
|
- redis-server
|
6
|
-
|
7
|
-
-
|
8
|
-
-
|
9
|
-
- 2.2
|
10
|
-
- jruby
|
11
|
-
- jruby-head
|
12
|
-
- rbx-2
|
6
|
+
before_install:
|
7
|
+
- gem install bundler
|
8
|
+
- gem update bundler
|
13
9
|
matrix:
|
14
|
-
|
15
|
-
- rvm:
|
16
|
-
|
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"
|
data/4.0-Upgrade.md
CHANGED
@@ -17,7 +17,7 @@ gem 'redis-namespace'
|
|
17
17
|
* **Redis 2.8.0 or greater is required.** Redis 2.8 was released two years
|
18
18
|
ago and contains **many** useful features which Sidekiq couldn't
|
19
19
|
leverage until now. **Redis 3.0.3 or greater is recommended** for large
|
20
|
-
scale use.
|
20
|
+
scale use [#2431](https://github.com/mperham/sidekiq/issues/2431).
|
21
21
|
|
22
22
|
* Jobs are now fetched from Redis in parallel, making Sidekiq more
|
23
23
|
resilient to high network latency. This means that Sidekiq requires
|
@@ -25,6 +25,9 @@ gem 'redis-namespace'
|
|
25
25
|
`concurrency + 2` connections in your pool or Sidekiq will exit.
|
26
26
|
When in doubt, let Sidekiq size the connection pool for you.
|
27
27
|
|
28
|
+
* Worker data is no longer updated in real-time but rather upon every
|
29
|
+
heartbeat. Don't expect the `Sidekiq::Workers` API to be millisecond-precise.
|
30
|
+
|
28
31
|
* There's a new testing API based off the `Sidekiq::Queues` namespace. All
|
29
32
|
assertions made against the Worker class still work as expected.
|
30
33
|
```ruby
|
data/5.0-Upgrade.md
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
# Welcome to Sidekiq 5.0!
|
2
|
+
|
3
|
+
Sidekiq 5.0 contains a reworked job dispatch and execution core to integrate
|
4
|
+
better with the new Rails 5.0 Executor. It also drops support for older
|
5
|
+
versions of Ruby and Rails and adds support for RTL languages in the Web UI.
|
6
|
+
|
7
|
+
## What's New
|
8
|
+
|
9
|
+
* Integrate job logging and retry logic directly in with the job
|
10
|
+
execution logic in Sidekiq::Processor. Previously this logic was
|
11
|
+
defined as middleware. In Rails 5.0, ActiveSupport::Executor handles ActiveRecord
|
12
|
+
connection management, job callbacks, development mode class loading,
|
13
|
+
etc. Because of its extensive responsibilities, the Executor can't be
|
14
|
+
integrated as Sidekiq middleware; the logging/retry logic had to be pulled out
|
15
|
+
too. Sidekiq 4.2 had a hack to make it work but this redesign provides
|
16
|
+
a cleaner integration. [#3235]
|
17
|
+
* The Delayed Extensions `delay`, `delay_in` and `delay_until` APIs are
|
18
|
+
no longer available by default. The extensions allow you to marshal
|
19
|
+
job arguments as YAML, leading to cases where job payloads could be many
|
20
|
+
100s of KB or larger if not careful, leading to Redis networking
|
21
|
+
timeouts or other problems. As noted in the Best Practices wiki page,
|
22
|
+
Sidekiq is designed for jobs with small, simple arguments.
|
23
|
+
|
24
|
+
Add this line to your initializer to re-enable them and get the old behavior:
|
25
|
+
```ruby
|
26
|
+
Sidekiq::Extensions.enable_delay!
|
27
|
+
```
|
28
|
+
The old `Sidekiq.remove_delay!` API has been removed as it is now the default. [#3299]
|
29
|
+
* Sidekiq's quiet signal is now `TSTP` (think of it as **T**hread
|
30
|
+
**ST**o**P**) instead of USR1 as USR1 is not available on JRuby.
|
31
|
+
USR1 will continue to be supported in Sidekiq 5.x for backwards
|
32
|
+
compatibility and will be removed in Sidekiq 6.x. [#3302]
|
33
|
+
* The Web UI is now bi-directional - it can render either LTR
|
34
|
+
(left-to-right) or RTL languages. With this change, **Farsi, Arabic,
|
35
|
+
Hebrew and Urdu** are officially supported. [#3381]
|
36
|
+
* Jobs which can't be parsed due to invalid JSON are now pushed
|
37
|
+
immediately to the Dead set since they require manual intervention and
|
38
|
+
will never execute successfully as is. The Web UI has been updated to
|
39
|
+
more gracefully display these jobs. [#3296]
|
40
|
+
* **Rails 3.2** is no longer supported.
|
41
|
+
* **Ruby 2.0 and Ruby 2.1** are no longer supported. Ruby 2.2.2+ is required.
|
42
|
+
|
43
|
+
## Upgrade
|
44
|
+
|
45
|
+
As always, please upgrade Sidekiq **one major version at a time**.
|
46
|
+
If you are already running Sidekiq 4.x, then:
|
47
|
+
|
48
|
+
* Upgrade to the latest Sidekiq 4.x.
|
49
|
+
```ruby
|
50
|
+
gem 'sidekiq', '< 5'
|
51
|
+
```
|
52
|
+
* Fix any deprecation warnings you see.
|
53
|
+
* Upgrade to 5.x.
|
54
|
+
```ruby
|
55
|
+
gem 'sidekiq', '< 6'
|
56
|
+
```
|
data/COMM-LICENSE
CHANGED
@@ -28,7 +28,7 @@ In order to use the Software under this Agreement, you must receive a “Source
|
|
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
30
|
|
31
|
-
3.2 UNDER NO CIRCUMSTANCES MAY YOU USE THE SOFTWARE
|
31
|
+
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
32
|
|
33
33
|
The Open Source version of the Software (“LGPL Version”) is licensed
|
34
34
|
under the terms of the GNU Lesser General Public License versions 3.0
|
data/Changes.md
CHANGED
@@ -1,15 +1,224 @@
|
|
1
1
|
# Sidekiq Changes
|
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
|
+
|
5
|
+
5.0.0
|
4
6
|
-----------
|
5
7
|
|
6
|
-
-
|
7
|
-
|
8
|
-
|
9
|
-
|
8
|
+
- **BREAKING CHANGE** Job dispatch was refactored for safer integration with
|
9
|
+
Rails 5. The **Logging** and **RetryJobs** server middleware were removed and
|
10
|
+
functionality integrated directly into Sidekiq::Processor. These aren't
|
11
|
+
commonly used public APIs so this shouldn't impact most users.
|
12
|
+
```
|
13
|
+
Sidekiq::Middleware::Server::RetryJobs -> Sidekiq::JobRetry
|
14
|
+
Sidekiq::Middleware::Server::Logging -> Sidekiq::JobLogging
|
15
|
+
```
|
16
|
+
- Quieting Sidekiq is now done via the TSTP signal, the USR1 signal is deprecated.
|
17
|
+
- The `delay` extension APIs are no longer available by default, you
|
18
|
+
must opt into them.
|
19
|
+
- The Web UI is now BiDi and can render RTL languages like Arabic, Farsi and Hebrew.
|
20
|
+
- Rails 3.2 and Ruby 2.0 and 2.1 are no longer supported.
|
21
|
+
- The `SomeWorker.set(options)` API was re-written to avoid thread-local state. [#2152]
|
22
|
+
- Sidekiq Enterprise's encrypted jobs now display "[encrypted data]" in the Web UI instead
|
23
|
+
of random hex bytes.
|
24
|
+
- Please see the [5.0 Upgrade notes](5.0-Upgrade.md) for more detail.
|
25
|
+
|
26
|
+
4.2.10
|
27
|
+
-----------
|
28
|
+
|
29
|
+
- Scheduled jobs can now be moved directly to the Dead queue via API [#3390]
|
30
|
+
- Fix edge case leading to job duplication when using Sidekiq Pro's
|
31
|
+
reliability feature [#3388]
|
32
|
+
- Fix error class name display on retry page [#3348]
|
33
|
+
- More robust latency calculation [#3340]
|
34
|
+
|
35
|
+
4.2.9
|
36
|
+
-----------
|
37
|
+
|
38
|
+
- Rollback [#3303] which broke Heroku Redis users [#3311]
|
39
|
+
- Add support for TSTP signal, for Sidekiq 5.0 forward compatibility. [#3302]
|
40
|
+
|
41
|
+
4.2.8
|
42
|
+
-----------
|
43
|
+
|
44
|
+
- Fix rare edge case with Redis driver that can create duplicate jobs [#3303]
|
45
|
+
- Fix Rails 5 loading issue [#3275]
|
46
|
+
- Restore missing tooltips to timestamps in Web UI [#3310]
|
47
|
+
- Work on **Sidekiq 5.0** is now active! [#3301]
|
48
|
+
|
49
|
+
4.2.7
|
50
|
+
-----------
|
51
|
+
|
52
|
+
- Add new integration testing to verify code loading and job execution
|
53
|
+
in development and production modes with Rails 4 and 5 [#3241]
|
54
|
+
- Fix delayed extensions in development mode [#3227, DarthSim]
|
55
|
+
- Use Worker's `retry` default if job payload does not have a retry
|
56
|
+
attribute [#3234, mlarraz]
|
57
|
+
|
58
|
+
4.2.6
|
59
|
+
-----------
|
60
|
+
|
61
|
+
- Run Rails Executor when in production [#3221, eugeneius]
|
62
|
+
|
63
|
+
4.2.5
|
64
|
+
-----------
|
65
|
+
|
66
|
+
- Re-enable eager loading of all code when running non-development Rails 5. [#3203]
|
67
|
+
- Better root URL handling for zany web servers [#3207]
|
68
|
+
|
69
|
+
4.2.4
|
70
|
+
-----------
|
71
|
+
|
72
|
+
- Log errors coming from the Rails 5 reloader. [#3212, eugeneius]
|
73
|
+
- Clone job data so middleware changes don't appear in Busy tab
|
74
|
+
|
75
|
+
4.2.3
|
76
|
+
-----------
|
77
|
+
|
78
|
+
- Disable use of Rails 5's Reloader API in non-development modes, it has proven
|
79
|
+
to be unstable under load [#3154]
|
80
|
+
- Allow disabling of Sidekiq::Web's cookie session to handle the
|
81
|
+
case where the app provides a session already [#3180, inkstak]
|
82
|
+
```ruby
|
83
|
+
Sidekiq::Web.set :sessions, false
|
84
|
+
```
|
85
|
+
- Fix Web UI sharding support broken in 4.2.2. [#3169]
|
86
|
+
- Fix timestamps not updating during UI polling [#3193, shaneog]
|
87
|
+
- Relax rack-protection version to >= 1.5.0
|
88
|
+
- Provide consistent interface to exception handlers, changing the structure of the context hash. [#3161]
|
89
|
+
|
90
|
+
4.2.2
|
91
|
+
-----------
|
92
|
+
|
93
|
+
- Fix ever-increasing cookie size with nginx [#3146, cconstantine]
|
94
|
+
- Fix so Web UI works without trailing slash [#3158, timdorr]
|
95
|
+
|
96
|
+
4.2.1
|
97
|
+
-----------
|
98
|
+
|
99
|
+
- Ensure browser does not cache JSON/AJAX responses. [#3136]
|
100
|
+
- Support old Sinatra syntax for setting config [#3139]
|
101
|
+
|
102
|
+
4.2.0
|
103
|
+
-----------
|
104
|
+
|
105
|
+
- Enable development-mode code reloading. **With Rails 5.0+, you don't need
|
106
|
+
to restart Sidekiq to pick up your Sidekiq::Worker changes anymore!** [#2457]
|
107
|
+
- **Remove Sinatra dependency**. Sidekiq's Web UI now uses Rack directly.
|
108
|
+
Thank you to Sidekiq's newest committer, **badosu**, for writing the code
|
109
|
+
and doing a lot of testing to ensure compatibility with many different
|
110
|
+
3rd party plugins. If your Web UI works with 4.1.4 but fails with
|
111
|
+
4.2.0, please open an issue. [#3075]
|
112
|
+
- Allow tuning of concurrency with the `RAILS_MAX_THREADS` env var. [#2985]
|
113
|
+
This is the same var used by Puma so you can tune all of your systems
|
114
|
+
the same way:
|
115
|
+
```sh
|
116
|
+
web: RAILS_MAX_THREADS=5 bundle exec puma ...
|
117
|
+
worker: RAILS_MAX_THREADS=10 bundle exec sidekiq ...
|
118
|
+
```
|
119
|
+
Using `-c` or `config/sidekiq.yml` overrides this setting. I recommend
|
120
|
+
adjusting your `config/database.yml` to use it too so connections are
|
121
|
+
auto-scaled:
|
122
|
+
```yaml
|
123
|
+
pool: <%= ENV['RAILS_MAX_THREADS'] || 5 %>
|
124
|
+
```
|
125
|
+
|
126
|
+
4.1.4
|
127
|
+
-----------
|
128
|
+
|
129
|
+
- Unlock Sinatra so a Rails 5.0 compatible version may be used [#3048]
|
130
|
+
- Fix race condition on startup with JRuby [#3043]
|
131
|
+
|
132
|
+
|
133
|
+
4.1.3
|
134
|
+
-----------
|
135
|
+
|
136
|
+
- Please note the Redis 3.3.0 gem has a [memory leak](https://github.com/redis/redis-rb/issues/612),
|
137
|
+
Redis 3.2.2 is recommended until that issue is fixed.
|
138
|
+
- Sinatra 1.4.x is now a required dependency, avoiding cryptic errors
|
139
|
+
and old bugs due to people not upgrading Sinatra for years. [#3042]
|
140
|
+
- Fixed race condition in heartbeat which could rarely lead to lingering
|
141
|
+
processes on the Busy tab. [#2982]
|
142
|
+
```ruby
|
143
|
+
# To clean up lingering processes, modify this as necessary to connect to your Redis.
|
144
|
+
# After 60 seconds, lingering processes should disappear from the Busy page.
|
145
|
+
|
146
|
+
require 'redis'
|
147
|
+
r = Redis.new(url: "redis://localhost:6379/0")
|
148
|
+
# uncomment if you need a namespace
|
149
|
+
#require 'redis-namespace'
|
150
|
+
#r = Redis::Namespace.new("foo", r)
|
151
|
+
r.smembers("processes").each do |pro|
|
152
|
+
r.expire(pro, 60)
|
153
|
+
r.expire("#{pro}:workers", 60)
|
154
|
+
end
|
155
|
+
```
|
156
|
+
|
157
|
+
|
158
|
+
4.1.2
|
159
|
+
-----------
|
160
|
+
|
161
|
+
- Fix Redis data leak with worker data when a busy Sidekiq process
|
162
|
+
crashes. You can find and expire leaked data in Redis with this
|
163
|
+
script:
|
164
|
+
```bash
|
165
|
+
$ redis-cli keys "*:workers" | while read LINE ; do TTL=`redis-cli expire "$LINE" 60`; echo "$LINE"; done;
|
166
|
+
```
|
167
|
+
Please note that `keys` can be dangerous to run on a large, busy Redis. Caveat runner.
|
168
|
+
- Freeze all string literals with Ruby 2.3. [#2741]
|
169
|
+
- Client middleware can now stop bulk job push. [#2887]
|
170
|
+
|
171
|
+
4.1.1
|
172
|
+
-----------
|
173
|
+
|
174
|
+
- Much better behavior when Redis disappears and comes back. [#2866]
|
175
|
+
- Update FR locale [dbachet]
|
176
|
+
- Don't fill logfile in case of Redis downtime [#2860]
|
177
|
+
- Allow definition of a global retries_exhausted handler. [#2807]
|
178
|
+
```ruby
|
179
|
+
Sidekiq.configure_server do |config|
|
180
|
+
config.default_retries_exhausted = -> (job, ex) do
|
181
|
+
Sidekiq.logger.info "#{job['class']} job is now dead"
|
182
|
+
end
|
183
|
+
end
|
184
|
+
```
|
185
|
+
|
186
|
+
4.1.0
|
187
|
+
-----------
|
188
|
+
|
189
|
+
- Tag quiet processes in the Web UI [#2757, jcarlson]
|
190
|
+
- Pass last exception to sidekiq\_retries\_exhausted block [#2787, Nowaker]
|
191
|
+
```ruby
|
192
|
+
class MyWorker
|
193
|
+
include Sidekiq::Worker
|
194
|
+
sidekiq_retries_exhausted do |job, exception|
|
195
|
+
end
|
196
|
+
end
|
197
|
+
```
|
198
|
+
- Add native support for ActiveJob's `set(options)` method allowing
|
199
|
+
you to override worker options dynamically. This should make it
|
200
|
+
even easier to switch between ActiveJob and Sidekiq's native APIs [#2780]
|
201
|
+
```ruby
|
202
|
+
class MyWorker
|
203
|
+
include Sidekiq::Worker
|
204
|
+
sidekiq_options queue: 'default', retry: true
|
205
|
+
|
206
|
+
def perform(*args)
|
207
|
+
# do something
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
MyWorker.set(queue: 'high', retry: false).perform_async(1)
|
212
|
+
```
|
213
|
+
|
214
|
+
4.0.2
|
215
|
+
-----------
|
216
|
+
|
217
|
+
- Better Japanese translations
|
218
|
+
- Remove `json` gem dependency from gemspec. [#2743]
|
10
219
|
- There's a new testing API based off the `Sidekiq::Queues` namespace. All
|
11
220
|
assertions made against the Worker class still work as expected.
|
12
|
-
[#
|
221
|
+
[#2676, brandonhilkert]
|
13
222
|
```ruby
|
14
223
|
assert_equal 0, Sidekiq::Queues["default"].size
|
15
224
|
HardWorker.perform_async("log")
|
@@ -18,6 +227,26 @@ assert_equal "log", Sidekiq::Queues["default"].first['args'][0]
|
|
18
227
|
Sidekiq::Queues.clear_all
|
19
228
|
```
|
20
229
|
|
230
|
+
4.0.1
|
231
|
+
-----------
|
232
|
+
|
233
|
+
- Yank new queue-based testing API [#2663]
|
234
|
+
- Fix invalid constant reference in heartbeat
|
235
|
+
|
236
|
+
4.0.0
|
237
|
+
-----------
|
238
|
+
|
239
|
+
- Sidekiq's internals have been completely overhauled for performance
|
240
|
+
and to remove dependencies. This has resulted in major speedups, as
|
241
|
+
[detailed on my blog](http://www.mikeperham.com/2015/10/14/optimizing-sidekiq/).
|
242
|
+
- See the [4.0 upgrade notes](4.0-Upgrade.md) for more detail.
|
243
|
+
|
244
|
+
3.5.4
|
245
|
+
-----------
|
246
|
+
|
247
|
+
- Ensure exception message is a string [#2707]
|
248
|
+
- Revert racy Process.kill usage in sidekiqctl
|
249
|
+
|
21
250
|
3.5.3
|
22
251
|
-----------
|
23
252
|
|
@@ -45,7 +274,7 @@ Sidekiq::Queues.clear_all
|
|
45
274
|
-----------
|
46
275
|
|
47
276
|
- **FIX MEMORY LEAK** Under rare conditions, threads may leak [#2598, gazay]
|
48
|
-
- Add
|
277
|
+
- Add Ukrainian locale [#2561, elrakita]
|
49
278
|
- Disconnect and retry Redis operations if we see a READONLY error [#2550]
|
50
279
|
- Add server middleware testing harness; see [wiki](https://github.com/mperham/sidekiq/wiki/Testing#testing-server-middleware) [#2534, ryansch]
|
51
280
|
|
data/Ent-Changes.md
CHANGED
@@ -1,9 +1,117 @@
|
|
1
|
-
Sidekiq Enterprise Changelog
|
2
|
-
|
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)
|
3
4
|
|
4
5
|
Please see [http://sidekiq.org/](http://sidekiq.org/) for more details and how to buy.
|
5
6
|
|
6
|
-
1.
|
7
|
+
1.5.2
|
8
|
+
-------------
|
9
|
+
|
10
|
+
- Fix encrypted arguments double-encrypted by retry or rate limiting [#3368]
|
11
|
+
- Fix leak in concurrent rate limiter, run this in Rails console to clean up existing data [#3323]
|
12
|
+
```ruby
|
13
|
+
expiry = 1.month.to_i; Sidekiq::Limiter.redis { |c| c.scan_each(match: "lmtr-cfree-*") { |key| c.expire(key, expiry) } }
|
14
|
+
```
|
15
|
+
|
16
|
+
1.5.1
|
17
|
+
-------------
|
18
|
+
|
19
|
+
- Fix issue with census startup when not using Bundler configuration for
|
20
|
+
source credentials.
|
21
|
+
|
22
|
+
1.5.0
|
23
|
+
-------------
|
24
|
+
|
25
|
+
- Add new web authorization API [#3251]
|
26
|
+
- Update all sidekiqswarm env vars to use SIDEKIQ\_ prefix [#3218]
|
27
|
+
- Add census reporting, the leader will ping contribsys nightly with aggregate usage metrics
|
28
|
+
|
29
|
+
1.4.0
|
30
|
+
-------------
|
31
|
+
|
32
|
+
- No functional changes, require latest Sidekiq and Sidekiq Pro versions
|
33
|
+
|
34
|
+
1.3.2
|
35
|
+
-------------
|
36
|
+
|
37
|
+
- Upgrade encryption to use OpenSSL's more secure GCM mode. [#3060]
|
38
|
+
|
39
|
+
1.3.1
|
40
|
+
-------------
|
41
|
+
|
42
|
+
- Fix multi-process memory monitoring on CentOS 6.x [#3063]
|
43
|
+
- Polish the new encryption feature a bit.
|
44
|
+
|
45
|
+
1.3.0
|
46
|
+
-------------
|
47
|
+
|
48
|
+
- **BETA** [New encryption feature](https://github.com/mperham/sidekiq/wiki/Ent-Encryption)
|
49
|
+
which automatically encrypts the last argument of a Worker, aka the secret bag.
|
50
|
+
|
51
|
+
1.2.4
|
52
|
+
-------------
|
53
|
+
|
54
|
+
- Fix issue causing some minutely jobs to execute every other minute.
|
55
|
+
- Log a warning if slow periodic processing causes us to miss a clock tick.
|
56
|
+
|
57
|
+
1.2.3
|
58
|
+
-------------
|
59
|
+
|
60
|
+
- Periodic jobs could stop executing until process restart if Redis goes down [#3047]
|
61
|
+
|
62
|
+
1.2.2
|
63
|
+
-------------
|
64
|
+
|
65
|
+
- Add API to check if a unique lock is present. See [#2932] for details.
|
66
|
+
- Tune concurrent limiters to minimize thread thrashing under heavy contention. [#2944]
|
67
|
+
- Add option for tuning which Bundler groups get preloaded with `sidekiqswarm` [#3025]
|
68
|
+
```
|
69
|
+
SIDEKIQ_PRELOAD=default,production bin/sidekiqswarm ...
|
70
|
+
# Use an empty value for maximum application compatibility
|
71
|
+
SIDEKIQ_PRELOAD= bin/sidekiqswarm ...
|
72
|
+
```
|
73
|
+
|
74
|
+
1.2.1
|
75
|
+
-------------
|
76
|
+
|
77
|
+
- Multi-Process mode can now monitor the RSS memory of children and
|
78
|
+
restart any that grow too large. To limit children to 1GB each:
|
79
|
+
```
|
80
|
+
MAXMEM_KB=1048576 COUNT=2 bundle exec sidekiqswarm ...
|
81
|
+
```
|
82
|
+
|
83
|
+
1.2.0
|
84
|
+
-------------
|
85
|
+
|
86
|
+
- **NEW FEATURE** Multi-process mode! Sidekiq Enterprise can now fork multiple worker
|
87
|
+
processes, enabling significant memory savings. See the [wiki
|
88
|
+
documentation](https://github.com/mperham/sidekiq/wiki/Ent-Multi-Process) for details.
|
89
|
+
|
90
|
+
|
91
|
+
0.7.10
|
92
|
+
-------------
|
93
|
+
|
94
|
+
- More precise gemspec dependency versioning
|
95
|
+
|
96
|
+
1.1.0
|
97
|
+
-------------
|
98
|
+
|
99
|
+
- **NEW FEATURE** Historical queue metrics, [documented in the wiki](https://github.com/mperham/sidekiq/wiki/Ent-Historical-Metrics) [#2719]
|
100
|
+
|
101
|
+
0.7.9, 1.0.2
|
102
|
+
-------------
|
103
|
+
|
104
|
+
- Window limiters can now accept arbitrary window sizes [#2686]
|
105
|
+
- Fix race condition in window limiters leading to non-stop OverLimit [#2704]
|
106
|
+
- Fix invalid overage counts when nesting concurrent limiters
|
107
|
+
|
108
|
+
1.0.1
|
109
|
+
----------
|
110
|
+
|
111
|
+
- Fix crash in periodic subsystem when a follower shuts down, thanks
|
112
|
+
to @justinko for reporting.
|
113
|
+
|
114
|
+
1.0.0
|
7
115
|
----------
|
8
116
|
|
9
117
|
- Enterprise 1.x targets Sidekiq 4.x.
|