1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/Changes.md

1732 lines
57 KiB
Markdown
Raw Normal View History

2015-10-26 12:18:07 -04:00
# Sidekiq Changes
2017-04-06 13:31:30 -04:00
[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)
2020-08-19 14:50:39 -04:00
HEAD
---------
2020-08-25 12:33:24 -04:00
- Improve contrast in dark mode Web UI [#4674]
2020-08-19 14:50:39 -04:00
- Fix Web UI crash with corrupt session [#4672]
- Allow middleware to yield arguments [#4673, @eugeneius]
2020-08-19 14:50:39 -04:00
2020-07-21 17:29:41 -04:00
6.1.1
---------
2020-07-13 15:45:11 -04:00
- Jobs are now sorted by age in the Busy Workers table. [#4641]
- Fix "check all" JS logic in Web UI [#4619]
2020-06-30 13:47:47 -04:00
6.1.0
---------
- Web UI - Dark Mode fixes [#4543, natematykiewicz]
- Ensure `Rack::ContentLength` is loaded as middleware for correct Web UI responses [#4541]
- Avoid exception dumping SSL store in Redis connection logging [#4532]
- Better error messages in Sidekiq::Client [#4549]
- Remove rack-protection, reimplement CSRF protection [#4588]
2020-06-16 10:49:08 -04:00
- Require redis-rb 4.2 [#4591]
2020-06-13 14:28:02 -04:00
- Update to jquery 1.12.4 [#4593]
- Refactor internal fetch logic and API [#4602]
2020-04-17 10:44:51 -04:00
6.0.7
2020-03-23 13:40:44 -04:00
---------
- Refactor systemd integration to work better with custom binaries [#4511]
2020-03-26 16:13:57 -04:00
- Don't connect to Redis at process exit if not needed [#4502]
2020-03-23 13:40:44 -04:00
- Remove Redis connection naming [#4479]
- Fix Redis Sentinel password redaction [#4499]
2020-04-16 15:33:17 -04:00
- Add Vietnamese locale (vi) [#4528]
2020-03-23 13:40:44 -04:00
2020-03-23 13:26:24 -04:00
6.0.6
2020-02-26 14:37:32 -05:00
---------
2020-03-17 13:42:46 -04:00
- **Integrate with systemd's watchdog and notification features** [#4488]
Set `Type=notify` in [sidekiq.service](https://github.com/mperham/sidekiq/blob/4b8a8bd3ae42f6e48ae1fdaf95ed7d7af18ed8bb/examples/systemd/sidekiq.service#L30-L39). The integration works automatically.
2020-03-17 13:15:02 -04:00
- Use `setTimeout` rather than `setInterval` to avoid thundering herd [#4480]
2020-02-26 14:37:32 -05:00
- Fix edge case where a job can be pushed without a queue.
2020-03-18 22:45:53 -04:00
- Flush job stats at exit [#4498]
2020-03-17 13:15:02 -04:00
- Check RAILS_ENV before RACK_ENV [#4493]
- Add Lithuanian locale [#4476]
2020-02-26 14:37:32 -05:00
2020-02-13 14:31:51 -05:00
6.0.5
---------
- Fix broken Web UI response when using NewRelic and Rack 2.1.2+. [#4440]
- Update APIs to use `UNLINK`, not `DEL`. [#4449]
2020-02-13 19:44:01 -05:00
- Fix Ruby 2.7 warnings [#4412]
- Add support for `APP_ENV` [[95fa5d9]](https://github.com/mperham/sidekiq/commit/95fa5d90192148026e52ca2902f1b83c70858ce8)
6.0.4
2019-11-14 17:03:35 -05:00
---------
- Fix ActiveJob's `sidekiq_options` integration [#4404]
2019-11-14 17:03:35 -05:00
- Sidekiq Pro users will now see a Pause button next to each queue in
the Web UI, allowing them to pause queues manually [#4374, shayonj]
- Fix Sidekiq::Workers API unintentional change in 6.0.2 [#4387]
2019-11-14 17:03:35 -05:00
2019-10-25 13:10:01 -04:00
6.0.3
---------
- Fix `Sidekiq::Client.push_bulk` API which was erroneously putting
invalid `at` values in the job payloads [#4321]
2019-10-12 14:17:04 -04:00
6.0.2
2019-10-11 16:30:30 -04:00
---------
2019-10-12 14:05:25 -04:00
- Fix Sidekiq Enterprise's rolling restart functionality, broken by refactoring in 6.0.0. [#4334]
2019-10-12 14:17:04 -04:00
- More internal refactoring and performance tuning [fatkodima]
2019-10-11 16:30:30 -04:00
2019-10-02 13:19:42 -04:00
6.0.1
2019-09-03 14:05:48 -04:00
---------
2019-10-01 22:09:26 -04:00
- **Performance tuning**, Sidekiq should be 10-15% faster now [#4303, 4299,
4269, fatkodima]
2019-09-27 13:16:04 -04:00
- **Dark Mode support in Web UI** (further design polish welcome!) [#4227, mperham,
fatkodima, silent-e]
- **Job-specific log levels**, allowing you to turn on debugging for
2019-09-25 07:46:09 -04:00
problematic workers. [fatkodima, #4287]
```ruby
MyWorker.set(log_level: :debug).perform_async(...)
```
2019-09-27 13:16:04 -04:00
- **Ad-hoc job tags**. You can tag your jobs with, e.g, subdomain, tenant, country,
locale, application, version, user/client, "alpha/beta/pro/ent", types of jobs,
teams/people responsible for jobs, additional metadata, etc.
Tags are shown on different pages with job listings. Sidekiq Pro users
can filter based on them [fatkodima, #4280]
2019-09-21 17:03:59 -04:00
```ruby
class MyWorker
include Sidekiq::Worker
sidekiq_options tags: ['bank-ops', 'alpha']
2019-09-21 17:03:59 -04:00
...
end
```
2019-09-27 13:16:04 -04:00
- Fetch scheduled jobs in batches before pushing into specific queues.
This will decrease enqueueing time of scheduled jobs by a third. [fatkodima, #4273]
```
ScheduledSet with 10,000 jobs
Before: 56.6 seconds
After: 39.2 seconds
```
2019-09-16 13:01:03 -04:00
- Compress error backtraces before pushing into Redis, if you are
storing error backtraces, this will halve the size of your RetrySet
in Redis [fatkodima, #4272]
```
RetrySet with 100,000 jobs
Before: 261 MB
After: 129 MB
```
- Support display of ActiveJob 6.0 payloads in the Web UI [#4263]
- Add `SortedSet#scan` for pattern based scanning. For large sets this API will be **MUCH** faster
than standard iteration using each. [fatkodima, #4262]
```ruby
Sidekiq::DeadSet.new.scan("UnreliableApi") do |job|
job.retry
end
```
- Dramatically speed up SortedSet#find\_job(jid) by using Redis's ZSCAN
2019-09-16 13:01:03 -04:00
support, approx 10x faster. [fatkodima, #4259]
```
zscan 0.179366 0.047727 0.227093 ( 1.161376)
enum 8.522311 0.419826 8.942137 ( 9.785079)
```
2019-09-16 13:01:03 -04:00
- Respect rails' generators `test_framework` option and gracefully handle extra `worker` suffix on generator [fatkodima, #4256]
- Add ability to sort 'Enqueued' page on Web UI by position in the queue [fatkodima, #4248]
- Support `Client.push_bulk` with different delays [fatkodima, #4243]
```ruby
Sidekiq::Client.push_bulk("class" => FooJob, "args" => [[1], [2]], "at" => [1.minute.from_now.to_f, 5.minutes.from_now.to_f])
```
2019-10-01 22:09:26 -04:00
- Easier way to test enqueuing specific ActionMailer and ActiveRecord delayed jobs. Instead of manually
parsing embedded class, you can now test by fetching jobs for specific classes. [fatkodima, #4292]
```ruby
assert_equal 1, Sidekiq::Extensions::DelayedMailer.jobs_for(FooMailer).size
```
- Add `sidekiqmon` to gemspec executables [#4242]
2019-09-03 14:05:48 -04:00
- Gracefully handle `Sidekiq.logger = nil` [#4240]
- Inject Sidekiq::LogContext module if user-supplied logger does not include it [#4239]
2019-09-03 14:05:48 -04:00
2019-02-07 14:42:35 -05:00
6.0
2018-12-07 12:04:20 -05:00
---------
2018-09-17 15:06:51 -04:00
This release has major breaking changes. Read and test carefully in production.
2019-09-24 21:53:31 -04:00
- With Rails 6.0.1+, ActiveJobs can now use `sidekiq_options` directly to configure Sidekiq
2019-07-24 14:00:25 -04:00
features/internals like the retry subsystem. [#4213, pirj]
2019-07-24 13:59:00 -04:00
```ruby
class MyJob < ActiveJob::Base
queue_as :myqueue
sidekiq_options retry: 10, backtrace: 20
def perform(...)
end
end
```
2019-09-02 12:43:55 -04:00
- Logging has been redesigned to allow for pluggable log formatters:
```ruby
Sidekiq.configure_server do |config|
config.log_formatter = Sidekiq::Logger::Formatters::JSON.new
end
```
See the [Logging wiki page](https://github.com/mperham/sidekiq/wiki/Logging) for more details.
2018-09-17 15:06:51 -04:00
- **BREAKING CHANGE** Validate proper usage of the `REDIS_PROVIDER`
variable. This variable is meant to hold the name of the environment
2019-03-06 12:17:45 -05:00
variable which contains your Redis URL, so that you can switch Redis
providers quickly and easily with a single variable change. It is not
meant to hold the actual Redis URL itself. If you want to manually set
the Redis URL (not recommended as it implies you have no failover),
then you may set `REDIS_URL` directly. [#3969]
2018-09-17 15:06:51 -04:00
- **BREAKING CHANGE** Increase default shutdown timeout from 8 seconds
to 25 seconds. Both Heroku and ECS now use 30 second shutdown timeout
2019-03-06 12:17:45 -05:00
by default and we want Sidekiq to take advantage of this time. If you
have deployment scripts which depend on the old default timeout, use `-t 8` to
get the old behavior. [#3968]
2018-12-07 15:57:19 -05:00
- **BREAKING CHANGE** Remove the daemonization, logfile and pidfile
arguments to Sidekiq. Use a proper process supervisor (e.g. systemd or
2019-03-06 12:17:45 -05:00
foreman) to manage Sidekiq. See the Deployment wiki page for links to
more resources.
- Integrate the StandardRB code formatter to ensure consistent code
styling. [#4114, gearnode]
2018-12-07 15:57:19 -05:00
2020-06-16 10:49:08 -04:00
5.2.9
---------
- Release Rack lock due to a cascade of CVEs. [#4566]
Pro-tip: don't lock Rack.
2020-02-13 12:21:48 -05:00
5.2.8
---------
- Lock to Rack 2.0.x to prevent future incompatibilities
- Fix invalid reference in `sidekiqctl`
2019-04-19 12:08:10 -04:00
5.2.7
2019-03-01 16:25:56 -05:00
---------
2019-04-16 12:07:58 -04:00
- Fix stale `enqueued_at` when retrying [#4149]
2019-04-19 12:08:10 -04:00
- Move build to [Circle CI](https://circleci.com/gh/mperham/sidekiq) [#4120]
2019-04-16 12:07:58 -04:00
2019-04-12 12:37:30 -04:00
5.2.6
---------
- Fix edge case where a job failure during Redis outage could result in a lost job [#4141]
2019-03-01 16:25:56 -05:00
- Better handling of malformed job arguments in payload [#4095]
- Restore bootstap's dropdown css component [#4099, urkle]
2019-04-16 12:07:58 -04:00
- Display human-friendly time diff for longer queue latencies [#4111, interlinked]
- Allow `Sidekiq::Worker#set` to be chained
2019-03-01 16:25:56 -05:00
2019-01-08 12:23:09 -05:00
5.2.5
---------
- Fix default usage of `config/sidekiq.yml` [#4077, Tensho]
2018-12-07 15:57:19 -05:00
5.2.4
---------
2019-01-07 12:31:22 -05:00
- Add warnings for various deprecations and changes coming in Sidekiq 6.0.
See the 6-0 branch. [#4056]
2018-12-07 12:04:20 -05:00
- Various improvements to the Sidekiq test suite and coverage [#4026, #4039, Tensho]
2018-11-06 12:00:26 -05:00
5.2.3
2018-09-20 16:08:15 -04:00
---------
2018-11-06 12:00:26 -05:00
- Warning message on invalid REDIS\_PROVIDER [#3970]
- Add `sidekiqctl status` command [#4003, dzunk]
- Update elapsed time calculatons to use monotonic clock [#3999]
2018-09-20 16:08:15 -04:00
- Fix a few issues with mobile Web UI styling [#3973, navied]
2018-09-27 11:49:58 -04:00
- Jobs with `retry: false` now go through the global `death_handlers`,
meaning you can take action on failed ephemeral jobs. [#3980, Benjamin-Dobell]
2018-10-18 11:29:10 -04:00
- Fix race condition in defining Workers. [#3997, mattbooks]
2018-09-20 16:08:15 -04:00
2018-09-17 12:08:33 -04:00
5.2.2
---------
- Raise error for duplicate queue names in config to avoid unexpected fetch algorithm change [#3911]
2018-09-12 17:06:36 -04:00
- Fix concurrency bug on JRuby [#3958, mattbooks]
- Add "Kill All" button to the retries page [#3938]
5.2.1
-----------
- Fix concurrent modification error during heartbeat [#3921]
2018-08-09 16:46:54 -04:00
5.2.0
-----------
- **Decrease default concurrency from 25 to 10** [#3892]
- Verify connection pool sizing upon startup [#3917]
2018-07-20 13:48:26 -04:00
- Smoother scheduling for large Sidekiq clusters [#3889]
2018-05-30 12:57:37 -04:00
- Switch Sidekiq::Testing impl from alias\_method to Module#prepend, for resiliency [#3852]
2018-06-21 14:18:59 -04:00
- Update Sidekiq APIs to use SCAN for scalability [#3848, ffiller]
- Remove concurrent-ruby gem dependency [#3830]
2018-08-05 14:01:04 -04:00
- Optimize Web UI's bootstrap.css [#3914]
2018-04-02 12:04:41 -04:00
5.1.3
-----------
- Fix version comparison so Ruby 2.2.10 works. [#3808, nateberkopec]
2018-03-29 15:04:02 -04:00
5.1.2
-----------
2018-03-27 12:18:52 -04:00
- Add link to docs in Web UI footer
2018-02-26 13:05:59 -05:00
- Fix crash on Ctrl-C in Windows [#3775, Bernica]
- Remove `freeze` calls on String constants. This is superfluous with Ruby
2.3+ and `frozen_string_literal: true`. [#3759]
- Fix use of AR middleware outside of Rails [#3787]
2018-03-22 12:13:21 -04:00
- Sidekiq::Worker `sidekiq_retry_in` block can now return nil or 0 to use
the default backoff delay [#3796, dsalahutdinov]
2018-02-08 13:23:42 -05:00
5.1.1
-----------
- Fix Web UI incompatibility with Redis 3.x gem [#3749]
2018-01-12 13:41:33 -05:00
5.1.0
2017-12-20 13:47:48 -05:00
-----------
- **NEW** Global death handlers - called when your job exhausts all
retries and dies. Now you can take action when a job fails permanently. [#3721]
- **NEW** Enable ActiveRecord query cache within jobs by default [#3718, sobrinho]
This will prevent duplicate SELECTS; cache is cleared upon any UPDATE/INSERT/DELETE.
2018-01-12 13:41:33 -05:00
See the issue for how to bypass the cache or disable it completely.
- Scheduler timing is now more accurate, 15 -> 5 seconds [#3734]
- Exceptions during the :startup event will now kill the process [#3717]
- Make `Sidekiq::Client.via` reentrant [#3715]
- Fix use of Sidekiq logger outside of the server process [#3714]
- Tweak `constantize` to better match Rails class lookup. [#3701, caffeinated-tech]
2017-12-20 13:47:48 -05:00
2017-10-02 15:53:14 -04:00
5.0.5
-----------
- Update gemspec to allow newer versions of the Redis gem [#3617]
- Refactor Worker.set so it can be memoized [#3602]
- Fix display of Redis URL in web footer, broken in 5.0.3 [#3560]
- Update `Sidekiq::Job#display_args` to avoid mutation [#3621]
2017-07-03 13:20:26 -04:00
5.0.4
2017-06-23 13:19:29 -04:00
-----------
- Fix "slow startup" performance regression from 5.0.2. [#3525]
- Allow users to disable ID generation since some redis providers disable the CLIENT command. [#3521]
2017-06-23 13:19:29 -04:00
5.0.3
-----------
2017-06-07 13:26:18 -04:00
- Fix overriding `class_attribute` core extension from ActiveSupport with Sidekiq one [PikachuEXE, #3499]
- Allow job logger to be overridden [AlfonsoUceda, #3502]
- Set a default Redis client identifier for debugging [#3516]
- Fix "Uninitialized constant" errors on startup with the delayed extensions [#3509]
2017-06-05 14:29:22 -04:00
5.0.2
-----------
- fix broken release, thanks @nateberkopec
2017-06-05 13:51:21 -04:00
5.0.1
2017-05-01 15:10:59 -04:00
-----------
- Fix incorrect server identity when daemonizing [jwilm, #3496]
- Work around error running Web UI against Redis Cluster [#3492]
- Remove core extensions, Sidekiq is now monkeypatch-free! [#3474]
2017-05-01 15:10:59 -04:00
- Reimplement Web UI's HTTP\_ACCEPT\_LANGUAGE parsing because the spec is utterly
incomprehensible for various edge cases. [johanlunds, natematykiewicz, #3449]
2017-05-01 15:10:59 -04:00
- Update `class_attribute` core extension to avoid warnings
- Expose `job_hash_context` from `Sidekiq::Logging` to support log customization
2017-05-01 15:10:59 -04:00
5.0.0
-----------
- **BREAKING CHANGE** Job dispatch was refactored for safer integration with
Rails 5. The **Logging** and **RetryJobs** server middleware were removed and
functionality integrated directly into Sidekiq::Processor. These aren't
commonly used public APIs so this shouldn't impact most users.
```
Sidekiq::Middleware::Server::RetryJobs -> Sidekiq::JobRetry
Sidekiq::Middleware::Server::Logging -> Sidekiq::JobLogger
```
2017-01-18 15:52:26 -05:00
- Quieting Sidekiq is now done via the TSTP signal, the USR1 signal is deprecated.
2017-01-31 14:42:02 -05:00
- The `delay` extension APIs are no longer available by default, you
must opt into them.
2017-03-16 17:12:27 -04:00
- The Web UI is now BiDi and can render RTL languages like Arabic, Farsi and Hebrew.
2017-01-31 14:42:02 -05:00
- Rails 3.2 and Ruby 2.0 and 2.1 are no longer supported.
- The `SomeWorker.set(options)` API was re-written to avoid thread-local state. [#2152]
- Sidekiq Enterprise's encrypted jobs now display "[encrypted data]" in the Web UI instead
of random hex bytes.
2017-01-18 15:52:26 -05:00
- Please see the [5.0 Upgrade notes](5.0-Upgrade.md) for more detail.
2017-03-17 13:01:02 -04:00
4.2.10
2017-02-20 13:11:53 -05:00
-----------
- Scheduled jobs can now be moved directly to the Dead queue via API [#3390]
2017-03-15 13:32:55 -04:00
- Fix edge case leading to job duplication when using Sidekiq Pro's
reliability feature [#3388]
- Fix error class name display on retry page [#3348]
- More robust latency calculation [#3340]
2017-02-20 13:11:53 -05:00
2017-01-13 11:19:31 -05:00
4.2.9
2017-01-09 13:01:44 -05:00
-----------
- Rollback [#3303] which broke Heroku Redis users [#3311]
- Add support for TSTP signal, for Sidekiq 5.0 forward compatibility. [#3302]
2017-01-09 13:01:44 -05:00
4.2.8
2016-11-28 14:49:50 -05:00
-----------
- Fix rare edge case with Redis driver that can create duplicate jobs [#3303]
- Fix Rails 5 loading issue [#3275]
- Restore missing tooltips to timestamps in Web UI [#3310]
- Work on **Sidekiq 5.0** is now active! [#3301]
2016-11-28 14:49:50 -05:00
4.2.7
-----------
- Add new integration testing to verify code loading and job execution
in development and production modes with Rails 4 and 5 [#3241]
- Fix delayed extensions in development mode [#3227, DarthSim]
- Use Worker's `retry` default if job payload does not have a retry
attribute [#3234, mlarraz]
2016-11-12 09:20:40 -05:00
4.2.6
-----------
- Run Rails Executor when in production [#3221, eugeneius]
2016-11-12 09:20:40 -05:00
4.2.5
-----------
- Re-enable eager loading of all code when running non-development Rails 5. [#3203]
- Better root URL handling for zany web servers [#3207]
2016-11-01 14:41:54 -04:00
4.2.4
-----------
- Log errors coming from the Rails 5 reloader. [#3212, eugeneius]
2016-11-01 14:41:54 -04:00
- Clone job data so middleware changes don't appear in Busy tab
2016-10-18 13:09:53 -04:00
4.2.3
2016-09-29 16:29:29 -04:00
-----------
2016-10-18 13:09:53 -04:00
- Disable use of Rails 5's Reloader API in non-development modes, it has proven
to be unstable under load [#3154]
- Allow disabling of Sidekiq::Web's cookie session to handle the
case where the app provides a session already [#3180, inkstak]
```ruby
Sidekiq::Web.set :sessions, false
```
- Fix Web UI sharding support broken in 4.2.2. [#3169]
- Fix timestamps not updating during UI polling [#3193, shaneog]
2016-09-29 16:29:29 -04:00
- Relax rack-protection version to >= 1.5.0
- Provide consistent interface to exception handlers, changing the structure of the context hash. [#3161]
2016-09-29 16:29:29 -04:00
2016-09-26 14:25:10 -04:00
4.2.2
-----------
- Fix ever-increasing cookie size with nginx [#3146, cconstantine]
- Fix so Web UI works without trailing slash [#3158, timdorr]
2016-09-26 14:25:10 -04:00
2016-09-15 10:34:47 -04:00
4.2.1
-----------
- Ensure browser does not cache JSON/AJAX responses. [#3136]
- Support old Sinatra syntax for setting config [#3139]
2016-09-13 14:27:05 -04:00
4.2.0
2016-07-01 00:21:47 -04:00
-----------
2016-08-24 12:44:46 -04:00
- Enable development-mode code reloading. **With Rails 5.0+, you don't need
to restart Sidekiq to pick up your Sidekiq::Worker changes anymore!** [#2457]
2016-08-24 12:44:46 -04:00
- **Remove Sinatra dependency**. Sidekiq's Web UI now uses Rack directly.
2016-08-20 17:51:48 -04:00
Thank you to Sidekiq's newest committer, **badosu**, for writing the code
and doing a lot of testing to ensure compatibility with many different
3rd party plugins. If your Web UI works with 4.1.4 but fails with
4.2.0, please open an issue. [#3075]
- Allow tuning of concurrency with the `RAILS_MAX_THREADS` env var. [#2985]
2016-08-01 12:33:12 -04:00
This is the same var used by Puma so you can tune all of your systems
the same way:
```sh
web: RAILS_MAX_THREADS=5 bundle exec puma ...
worker: RAILS_MAX_THREADS=10 bundle exec sidekiq ...
```
Using `-c` or `config/sidekiq.yml` overrides this setting. I recommend
adjusting your `config/database.yml` to use it too so connections are
auto-scaled:
```yaml
pool: <%= ENV['RAILS_MAX_THREADS'] || 5 %>
```
2016-07-01 00:21:47 -04:00
2016-07-01 00:07:10 -04:00
4.1.4
-----------
- Unlock Sinatra so a Rails 5.0 compatible version may be used [#3048]
- Fix race condition on startup with JRuby [#3043]
2016-07-01 00:07:10 -04:00
2016-06-29 12:54:36 -04:00
4.1.3
2016-05-23 19:34:34 -04:00
-----------
2016-06-29 13:05:14 -04:00
- Please note the Redis 3.3.0 gem has a [memory leak](https://github.com/redis/redis-rb/issues/612),
Redis 3.2.2 is recommended until that issue is fixed.
2016-06-29 12:21:17 -04:00
- Sinatra 1.4.x is now a required dependency, avoiding cryptic errors
and old bugs due to people not upgrading Sinatra for years. [#3042]
2016-05-23 19:34:34 -04:00
- Fixed race condition in heartbeat which could rarely lead to lingering
processes on the Busy tab. [#2982]
```ruby
2016-06-29 12:54:36 -04:00
# To clean up lingering processes, modify this as necessary to connect to your Redis.
# After 60 seconds, lingering processes should disappear from the Busy page.
require 'redis'
r = Redis.new(url: "redis://localhost:6379/0")
# uncomment if you need a namespace
#require 'redis-namespace'
#r = Redis::Namespace.new("foo", r)
r.smembers("processes").each do |pro|
r.expire(pro, 60)
r.expire("#{pro}:workers", 60)
end
```
2016-05-23 19:34:34 -04:00
4.1.2
-----------
- Fix Redis data leak with worker data when a busy Sidekiq process
2016-05-04 18:46:27 -04:00
crashes. You can find and expire leaked data in Redis with this
script:
```bash
$ redis-cli keys "*:workers" | while read LINE ; do TTL=`redis-cli expire "$LINE" 60`; echo "$LINE"; done;
```
2016-05-05 11:56:08 -04:00
Please note that `keys` can be dangerous to run on a large, busy Redis. Caveat runner.
- Freeze all string literals with Ruby 2.3. [#2741]
- Client middleware can now stop bulk job push. [#2887]
2016-03-04 12:30:56 -05:00
4.1.1
-----------
- Much better behavior when Redis disappears and comes back. [#2866]
2016-03-04 12:30:56 -05:00
- Update FR locale [dbachet]
- Don't fill logfile in case of Redis downtime [#2860]
- Allow definition of a global retries_exhausted handler. [#2807]
```ruby
Sidekiq.configure_server do |config|
config.default_retries_exhausted = -> (job, ex) do
Sidekiq.logger.info "#{job['class']} job is now dead"
end
end
```
2016-01-28 16:28:45 -05:00
4.1.0
2016-01-07 18:09:10 -05:00
-----------
- Tag quiet processes in the Web UI [#2757, jcarlson]
- Pass last exception to sidekiq\_retries\_exhausted block [#2787, Nowaker]
2016-01-27 18:47:07 -05:00
```ruby
class MyWorker
include Sidekiq::Worker
sidekiq_retries_exhausted do |job, exception|
end
end
```
2016-01-18 15:50:52 -05:00
- Add native support for ActiveJob's `set(options)` method allowing
you to override worker options dynamically. This should make it
even easier to switch between ActiveJob and Sidekiq's native APIs [#2780]
2016-01-18 15:50:52 -05:00
```ruby
class MyWorker
include Sidekiq::Worker
sidekiq_options queue: 'default', retry: true
2016-01-07 18:09:10 -05:00
2016-01-18 15:50:52 -05:00
def perform(*args)
# do something
end
end
MyWorker.set(queue: 'high', retry: false).perform_async(1)
```
2016-01-07 18:09:10 -05:00
2015-11-25 11:48:26 -05:00
4.0.2
-----------
2016-01-06 13:35:27 -05:00
- Better Japanese translations
- Remove `json` gem dependency from gemspec. [#2743]
2015-11-25 11:48:26 -05:00
- There's a new testing API based off the `Sidekiq::Queues` namespace. All
assertions made against the Worker class still work as expected.
[#2676, brandonhilkert]
2015-11-25 11:48:26 -05:00
```ruby
assert_equal 0, Sidekiq::Queues["default"].size
HardWorker.perform_async("log")
assert_equal 1, Sidekiq::Queues["default"].size
assert_equal "log", Sidekiq::Queues["default"].first['args'][0]
Sidekiq::Queues.clear_all
```
2015-11-17 13:03:26 -05:00
4.0.1
-----------
- Yank new queue-based testing API [#2663]
2015-11-17 13:03:26 -05:00
- Fix invalid constant reference in heartbeat
4.0.0
2015-10-28 12:23:18 -04:00
-----------
- Sidekiq's internals have been completely overhauled for performance
and to remove dependencies. This has resulted in major speedups, as
[detailed on my blog](http://www.mikeperham.com/2015/10/14/optimizing-sidekiq/).
- See the [4.0 upgrade notes](4.0-Upgrade.md) for more detail.
2016-01-13 16:08:07 -05:00
3.5.4
-----------
- Ensure exception message is a string [#2707]
2016-01-13 16:08:07 -05:00
- Revert racy Process.kill usage in sidekiqctl
3.5.3
-----------
- Adjust shutdown event to run in parallel with the rest of system shutdown. [#2635]
2015-10-28 12:12:23 -04:00
3.5.2
2015-10-26 12:18:07 -04:00
-----------
2015-10-28 12:12:23 -04:00
- **Sidekiq 3 is now in maintenance mode**, only major bugs will be fixed.
2015-10-26 12:18:07 -04:00
- The exception triggering a retry is now passed into `sidekiq_retry_in`,
allowing you to retry more frequently for certain types of errors.
[#2619, kreynolds]
2015-10-26 12:18:07 -04:00
```ruby
sidekiq_retry_in do |count, ex|
case ex
when RuntimeError
5 * count
else
10 * count
end
end
```
2015-10-09 15:37:05 -04:00
3.5.1
-----------
- **FIX MEMORY LEAK** Under rare conditions, threads may leak [#2598, gazay]
- Add Ukrainian locale [#2561, elrakita]
- Disconnect and retry Redis operations if we see a READONLY error [#2550]
- Add server middleware testing harness; see [wiki](https://github.com/mperham/sidekiq/wiki/Testing#testing-server-middleware) [#2534, ryansch]
2015-08-31 14:03:38 -04:00
3.5.0
-----------
- Polished new banner! [#2522, firedev]
- Upgrade to Celluloid 0.17. [#2420, digitalextremist]
2015-08-31 14:03:38 -04:00
- Activate sessions in Sinatra for CSRF protection, requires Rails
monkeypatch due to rails/rails#15843. [#2460, jc00ke]
2015-07-29 12:58:46 -04:00
3.4.2
-----------
- Don't allow `Sidekiq::Worker` in ActiveJob::Base classes. [#2424]
- Safer display of job data in Web UI [#2405]
2015-07-16 10:05:31 -04:00
- Fix CSRF vulnerability in Web UI, thanks to Egor Homakov for
reporting. [#2422] If you are running the Web UI as a standalone Rack app,
ensure you have a [session middleware
configured](https://github.com/mperham/sidekiq/wiki/Monitoring#standalone):
```ruby
use Rack::Session::Cookie, :secret => "some unique secret string here"
```
3.4.1
-----------
- Lock to Celluloid 0.16
2015-06-17 14:40:03 -04:00
3.4.0
-----------
2015-06-03 13:44:26 -04:00
- Set a `created_at` attribute when jobs are created, set `enqueued_at` only
when they go into a queue. Fixes invalid latency calculations with scheduled jobs.
[#2373, mrsimo]
- Don't log timestamp on Heroku [#2343]
- Run `shutdown` event handlers in reverse order of definition [#2374]
- Rename and rework `poll_interval` to be simpler, more predictable [#2317, cainlevy]
2015-06-17 14:40:03 -04:00
The new setting is `average_scheduled_poll_interval`. To configure
Sidekiq to look for scheduled jobs every 5 seconds, just set it to 5.
```ruby
Sidekiq.configure_server do |config|
config.average_scheduled_poll_interval = 5
end
```
2015-04-21 12:25:38 -04:00
3.3.4
2015-03-22 19:46:41 -04:00
-----------
2015-03-30 11:36:56 -04:00
- **Improved ActiveJob integration** - Web UI now shows ActiveJobs in a
2015-04-02 12:06:50 -04:00
nicer format and job logging shows the actual class name, requires
Rails 4.2.2+ [#2248, #2259]
- Add Sidekiq::Process#dump\_threads API to trigger TTIN output [#2247]
- Web UI polling now uses Ajax to avoid page reload [#2266, davydovanton]
2015-03-31 12:42:44 -04:00
- Several Web UI styling improvements [davydovanton]
2015-04-02 12:06:50 -04:00
- Add Tamil, Hindi translations for Web UI [ferdinandrosario, tejasbubane]
- Fix Web UI to work with country-specific locales [#2243]
- Handle circular error causes [#2285, eugenk]
2015-03-22 19:46:41 -04:00
3.3.3
-----------
- Fix crash on exit when Redis is down [#2235]
- Fix duplicate logging on startup
- Undeprecate delay extension for ActionMailer 4.2+ . [#2186]
2015-02-05 15:24:52 -05:00
3.3.2
-----------
2015-02-04 15:51:29 -05:00
- Add Sidekiq::Stats#queues back
- Allows configuration of dead job set size and timeout [#2173, jonhyman]
- Refactor scheduler enqueuing so Sidekiq Pro can override it. [#2159]
2015-01-27 13:01:17 -05:00
3.3.1
2014-12-06 16:00:50 -05:00
-----------
- Dumb down ActionMailer integration so it tries to deliver if possible [#2149]
- Stringify Sidekiq.default\_worker\_options's keys [#2126]
- Add random integer to process identity [#2113, michaeldiscala]
- Log Sidekiq Pro's Batch ID if available [#2076]
- Refactor Processor Redis usage to avoid redis/redis-rb#490 [#2094]
- Move /dashboard/stats to /stats. Add /stats/queues. [moserke, #2099]
- Add processes count to /stats [ismaelga, #2141]
- Greatly improve speed of Sidekiq::Stats [ismaelga, #2142]
2014-12-26 12:20:15 -05:00
- Add better usage text for `sidekiqctl`.
2014-12-30 17:06:02 -05:00
- `Sidekiq::Logging.with_context` is now a stack so you can set your
own job context for logging purposes [grosser, #2110]
- Remove usage of Google Fonts in Web UI so it loads in China [#2144]
2014-12-06 16:00:50 -05:00
2014-11-19 13:01:19 -05:00
3.3.0
2014-10-21 06:01:50 -04:00
-----------
- Upgrade to Celluloid 0.16 [#2056]
- Fix typo for generator test file name [dlackty, #2016]
- Add Sidekiq::Middleware::Chain#prepend [seuros, #2029]
2014-10-21 06:01:50 -04:00
2014-10-20 11:43:41 -04:00
3.2.6
2014-09-28 16:21:08 -04:00
-----------
- Deprecate delay extension for ActionMailer 4.2+ . [seuros, #1933]
- Poll interval tuning now accounts for dead processes [epchris, #1984]
- Add non-production environment to Web UI page titles [JacobEvelyn, #2004]
2014-09-28 16:21:08 -04:00
2014-09-10 11:38:04 -04:00
3.2.5
-----------
2014-10-10 13:50:39 -04:00
- Lock Celluloid to 0.15.2 due to bugs in 0.16.0. This prevents the
"hang on shutdown" problem with Celluloid 0.16.0.
2014-09-10 11:38:04 -04:00
2014-09-06 23:38:41 -04:00
3.2.4
-----------
- Fix issue preventing ActionMailer sends working in some cases with
Rails 4. [pbhogan, #1923]
2014-09-06 23:38:41 -04:00
2014-08-13 12:02:04 -04:00
3.2.3
-----------
- Clean invalid bytes from error message before converting to JSON (requires Ruby 2.1+) [#1705]
- Add queues list for each process to the Busy page. [davetoxa, #1897]
- Fix for crash caused by empty config file. [jordan0day, #1901]
- Add Rails Worker generator, `rails g sidekiq:worker User` will create `app/workers/user_worker.rb`. [seuros, #1909]
- Fix Web UI rendering with huge job arguments [jhass, #1918]
- Minor refactoring of Sidekiq::Client internals, for Sidekiq Pro. [#1919]
2014-08-13 12:02:04 -04:00
2014-07-28 18:51:25 -04:00
3.2.2
-----------
2014-08-12 12:56:06 -04:00
- **This version of Sidekiq will no longer start on Ruby 1.9.** Sidekiq
3 does not support MRI 1.9 but we've allowed it to run before now.
- Fix issue which could cause Sidekiq workers to disappear from the Busy
tab while still being active [#1884]
2014-08-06 13:10:59 -04:00
- Add "Back to App" button in Web UI. You can set the button link via
`Sidekiq::Web.app_url = 'http://www.mysite.com'` [#1875, seuros]
- Add process tag (`-g tag`) to the Busy page so you can differentiate processes at a glance. [seuros, #1878]
- Add "Kill" button to move retries directly to the DJQ so they don't retry. [seuros, #1867]
2014-07-28 18:51:25 -04:00
2014-07-08 12:23:41 -04:00
3.2.1
-----------
- Revert eager loading change for Rails 3.x apps, as it broke a few edge
cases.
3.2.0
-----------
2014-07-01 01:07:12 -04:00
- **Fix issue which caused duplicate job execution in Rails 3.x**
This issue is caused by [improper exception handling in ActiveRecord](https://github.com/rails/rails/blob/3-2-stable/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb#L281) which changes Sidekiq's Shutdown exception into a database
error, making Sidekiq think the job needs to be retried. **The fix requires Ruby 2.1**. [#1805]
- Update how Sidekiq eager loads Rails application code [#1791, jonleighton]
2014-06-20 13:20:51 -04:00
- Change logging timestamp to show milliseconds.
- Reverse sorting of Dead tab so newer jobs are listed first [#1802]
3.1.4
-----------
- Happy π release!
- Self-tuning Scheduler polling, we use heartbeat info to better tune poll\_interval [#1630]
- Remove all table column width rules, hopefully get better column formatting [#1747]
- Handle edge case where YAML can't be decoded in dev mode [#1761]
- Fix lingering jobs in Busy page on Heroku [#1764]
3.1.3
-----------
- Use ENV['DYNO'] on Heroku for hostname display, rather than an ugly UUID. [#1742]
- Show per-process labels on the Busy page, for feature tagging [#1673]
3.1.2
-----------
- Suitably chastised, @mperham reverts the Bundler change.
2014-05-23 18:53:07 -04:00
3.1.1
-----------
- Sidekiq::CLI now runs `Bundler.require(:default, environment)` to boot all gems
before loading any app code.
- Sort queues by name in Web UI [#1734]
2014-05-23 18:53:07 -04:00
2014-05-14 00:41:40 -04:00
3.1.0
-----------
2014-05-17 17:58:34 -04:00
- New **remote control** feature: you can remotely trigger Sidekiq to quiet
or terminate via API, without signals. This is most useful on JRuby
or Heroku which does not support the USR1 'quiet' signal. Now you can
2014-05-14 00:41:40 -04:00
run a rake task like this at the start of your deploy to quiet your
set of Sidekiq processes. [#1703]
2014-05-14 00:41:40 -04:00
```ruby
namespace :sidekiq do
task :quiet => :environment do
Sidekiq::ProcessSet.new.each(&:quiet!)
end
end
```
2014-05-20 23:44:38 -04:00
- The Web UI can use the API to quiet or stop all processes via the Busy page.
- The Web UI understands and hides the `Sidekiq::Extensions::Delay*`
classes, instead showing `Class.method` as the Job. [#1718]
- Polish the Dashboard graphs a bit, update Rickshaw [brandonhilkert, #1725]
- The poll interval is now configurable in the Web UI [madebydna, #1713]
2014-05-20 23:44:38 -04:00
- Delay extensions can be removed so they don't conflict with
DelayedJob: put `Sidekiq.remove_delay!` in your initializer. [devaroop, #1674]
2014-05-14 00:41:40 -04:00
2014-05-05 12:30:33 -04:00
3.0.2
-----------
- Revert gemfile requirement of Ruby 2.0. JRuby 1.7 calls itself Ruby
1.9.3 and broke with this requirement.
2014-05-03 17:11:20 -04:00
3.0.1
2014-04-02 23:17:22 -04:00
-----------
2014-04-25 23:36:31 -04:00
- Revert pidfile behavior from 2.17.5: Sidekiq will no longer remove its own pidfile
as this is a race condition when restarting. [#1470, #1677]
- Show warning on the Queues page if a queue is paused [#1672]
- Only activate the ActiveRecord middleware if ActiveRecord::Base is defined on boot. [#1666]
2014-04-12 17:45:17 -04:00
- Add ability to disable jobs going to the DJQ with the `dead` option.
```ruby
sidekiq_options :dead => false, :retry => 5
```
2014-04-02 23:17:22 -04:00
- Minor fixes
2014-03-08 23:54:59 -05:00
3.0.0
2014-02-02 00:14:50 -05:00
-----------
2014-03-27 00:44:17 -04:00
Please see [3.0-Upgrade.md](3.0-Upgrade.md) for more comprehensive upgrade notes.
2014-02-13 23:45:07 -05:00
2014-02-10 00:17:05 -05:00
- **Dead Job Queue** - jobs which run out of retries are now moved to a dead
2014-02-09 17:56:01 -05:00
job queue. These jobs must be retried manually or they will expire
2014-02-24 23:47:44 -05:00
after 6 months or 10,000 jobs. The Web UI contains a "Dead" tab
2014-03-21 23:43:01 -04:00
exposing these jobs. Use `sidekiq_options :retry => false` if you
don't wish jobs to be retried or put in the DJQ. Use
2014-03-21 23:45:36 -04:00
`sidekiq_options :retry => 0` if you don't want jobs to retry but go
straight to the DJQ.
2014-03-10 23:58:57 -04:00
- **Process Lifecycle Events** - you can now register blocks to run at
certain points during the Sidekiq process lifecycle: startup, quiet and
2014-03-10 23:58:57 -04:00
shutdown.
2014-03-21 23:43:01 -04:00
```ruby
Sidekiq.configure_server do |config|
config.on(:startup) do
# do something
end
end
```
2014-03-10 23:58:57 -04:00
- **Global Error Handlers** - blocks of code which handle errors that
occur anywhere within Sidekiq, not just within middleware.
2014-03-21 23:43:01 -04:00
```ruby
Sidekiq.configure_server do |config|
config.error_handlers << proc {|ex,ctx| ... }
2014-03-21 23:43:01 -04:00
end
```
- **Process Heartbeat** - each Sidekiq process will ping Redis every 5
2014-03-08 17:33:25 -05:00
seconds to give a summary of the Sidekiq population at work.
2014-03-24 23:45:15 -04:00
- The Workers tab is now renamed to Busy and contains a list of live
Sidekiq processes and jobs in progress based on the heartbeat.
2014-03-24 23:43:33 -04:00
- **Shardable Client** - Sidekiq::Client instances can use a custom
Redis connection pool, allowing very large Sidekiq installations to scale by
sharding: sending different jobs to different Redis instances.
2014-03-24 23:32:12 -04:00
```ruby
client = Sidekiq::Client.new(ConnectionPool.new { Redis.new })
client.push(...)
2014-03-27 01:07:34 -04:00
```
```ruby
Sidekiq::Client.via(ConnectionPool.new { Redis.new }) do
FooWorker.perform_async
BarWorker.perform_async
end
2014-03-24 23:32:12 -04:00
```
**Sharding support does require a breaking change to client-side
2014-03-27 00:50:06 -04:00
middleware, see 3.0-Upgrade.md.**
2014-03-19 19:53:22 -04:00
- New Chinese, Greek, Swedish and Czech translations for the Web UI.
2014-03-15 17:29:36 -04:00
- Updated most languages translations for the new UI features.
2014-03-12 00:10:19 -04:00
- **Remove official Capistrano integration** - this integration has been
2014-03-13 00:37:18 -04:00
moved into the [capistrano-sidekiq](https://github.com/seuros/capistrano-sidekiq) gem.
2014-03-19 19:53:22 -04:00
- **Remove official support for MRI 1.9** - Things still might work but
2014-02-02 00:14:50 -05:00
I no longer actively test on it.
2014-02-13 23:45:07 -05:00
- **Remove built-in support for Redis-to-Go**.
2014-02-02 00:38:59 -05:00
Heroku users: `heroku config:set REDIS_PROVIDER=REDISTOGO_URL`
2014-02-10 00:17:05 -05:00
- **Remove built-in error integration for Airbrake, Honeybadger, ExceptionNotifier and Exceptional**.
Each error gem should provide its own Sidekiq integration. Update your error gem to the latest
version to pick up Sidekiq support.
2014-03-15 17:29:36 -04:00
- Upgrade to connection\_pool 2.0 which now creates connections lazily.
- Remove deprecated Sidekiq::Client.registered\_\* APIs
- Remove deprecated support for the old Sidekiq::Worker#retries\_exhausted method.
2014-03-10 23:58:57 -04:00
- Removed 'sidekiq/yaml\_patch', this was never documented or recommended.
- Removed --profile option, #1592
- Remove usage of the term 'Worker' in the UI for clarity. Users would call both threads and
processes 'workers'. Instead, use "Thread", "Process" or "Job".
2014-02-02 00:14:50 -05:00
2.17.7
-----------
- Auto-prune jobs older than one hour from the Workers page [#1508]
- Add Sidekiq::Workers#prune which can perform the auto-pruning.
2014-02-24 23:01:10 -05:00
- Fix issue where a job could be lost when an exception occurs updating
Redis stats before the job executes [#1511]
2014-02-19 00:05:23 -05:00
2.17.6
-----------
- Fix capistrano integration due to missing pidfile. [#1490]
2014-02-19 00:05:23 -05:00
2014-02-09 16:39:04 -05:00
2.17.5
2014-02-07 17:04:33 -05:00
-----------
- Automatically use the config file found at `config/sidekiq.yml`, if not passed `-C`. [#1481]
- Store 'retried\_at' and 'failed\_at' timestamps as Floats, not Strings. [#1473]
- A `USR2` signal will now reopen _all_ logs, using IO#reopen. Thus, instead of creating a new Logger object,
Sidekiq will now just update the existing Logger's file descriptor [#1163].
- Remove pidfile when shutting down if started with `-P` [#1470]
2014-02-02 00:14:50 -05:00
2.17.4
-----------
- Fix JID support in inline testing, #1454
- Polish worker arguments display in UI, #1453
- Marshal arguments fully to avoid worker mutation, #1452
- Support reverse paging sorted sets, #1098
2014-01-16 18:43:32 -05:00
2.17.3
-----------
- Synchronously terminates the poller and fetcher to fix a race condition in bulk requeue during shutdown [#1406]
2014-01-16 18:43:32 -05:00
2014-01-03 00:58:41 -05:00
2.17.2
-----------
- Fix bug where strictly prioritized queues might be processed out of
order [#1408]. A side effect of this change is that it breaks a queue
declaration syntax that worked, although only because of a bug—it was
never intended to work and never supported. If you were declaring your
queues as a comma-separated list, e.g. `sidekiq -q critical,default,low`,
you must now use the `-q` flag before each queue, e.g.
`sidekiq -q critical -q default -q low`.
2014-01-03 00:58:41 -05:00
2013-12-14 23:44:52 -05:00
2.17.1
-----------
- Expose `delay` extension as `sidekiq_delay` also. This allows you to
run Delayed::Job and Sidekiq in the same process, selectively porting
`delay` calls to `sidekiq_delay`. You just need to ensure that
Sidekiq is required **before** Delayed::Job in your Gemfile. [#1393]
2013-12-14 23:44:52 -05:00
- Bump redis client required version to 3.0.6
- Minor CSS fixes for Web UI
2.17.0
-----------
- Change `Sidekiq::Client#push_bulk` to return an array of pushed `jid`s. [#1315, barelyknown]
2013-11-11 00:22:50 -05:00
- Web UI refactoring to use more API internally (yummy dogfood!)
2013-11-20 18:15:33 -05:00
- Much faster Sidekiq::Job#delete performance for larger queue sizes
2013-11-17 16:39:52 -05:00
- Further capistrano 3 fixes
2013-11-23 15:40:39 -05:00
- Many misc minor fixes
2013-10-30 23:37:38 -04:00
2.16.1
2013-10-30 18:12:26 -04:00
-----------
- Revert usage of `resolv-replace`. MRI's native DNS lookup releases the GIL.
2013-10-30 23:37:38 -04:00
- Fix several Capistrano 3 issues
- Escaping dynamic data like job args and error messages in Sidekiq Web UI. [#1299, lian]
2013-10-30 18:12:26 -04:00
2.16.0
-----------
2013-10-24 00:58:15 -04:00
- Deprecate `Sidekiq::Client.registered_workers` and `Sidekiq::Client.registered_queues`
- Refactor Sidekiq::Client to be instance-based [#1279]
2013-10-21 16:45:11 -04:00
- Pass all Redis options to the Redis driver so Unix sockets
can be fully configured. [#1270, salimane]
- Allow sidekiq-web extensions to add locale paths so extensions
can be localized. [#1261, ondrejbartas]
- Capistrano 3 support [#1254, phallstrom]
- Use Ruby's `resolv-replace` to enable pure Ruby DNS lookups.
This ensures that any DNS resolution that takes place in worker
threads won't lock up the entire VM on MRI. [#1258]
2013-10-13 18:59:09 -04:00
2.15.2
-----------
- Iterating over Sidekiq::Queue and Sidekiq::SortedSet will now work as
intended when jobs are deleted [#866, aackerman]
- A few more minor Web UI fixes [#1247]
2013-10-13 18:59:09 -04:00
2013-10-03 23:15:04 -04:00
2.15.1
-----------
- Fix several Web UI issues with the Bootstrap 3 upgrade.
2013-09-21 20:05:45 -04:00
2.15.0
-----------
- The Core Sidekiq actors are now monitored. If any crash, the
2013-09-28 15:48:07 -04:00
Sidekiq process logs the error and exits immediately. This is to
help prevent "stuck" Sidekiq processes which are running but don't
appear to be doing any work. [#1194]
- Sidekiq's testing behavior is now dynamic. You can choose between
2013-09-28 15:48:07 -04:00
`inline` and `fake` behavior in your tests. See
[Testing](https://github.com/mperham/sidekiq/wiki/Testing) for detail. [#1193]
2013-09-21 20:05:45 -04:00
- The Retries table has a new column for the error message.
2013-09-28 15:48:07 -04:00
- The Web UI topbar now contains the status and live poll button.
2015-09-30 11:56:12 -04:00
- Orphaned worker records are now auto-vacuumed when you visit the
2013-09-28 15:48:07 -04:00
Workers page in the Web UI.
2013-09-21 20:05:45 -04:00
- Sidekiq.default\_worker\_options allows you to configure default
options for all Sidekiq worker types.
```ruby
Sidekiq.default_worker_options = { 'queue' => 'default', 'backtrace' => true }
```
2013-09-29 17:24:25 -04:00
- Added two Sidekiq::Client class methods for compatibility with resque-scheduler:
`enqueue_to_in` and `enqueue_in` [#1212]
- Upgrade Web UI to Bootstrap 3.0. [#1211, jeffboek]
2013-09-21 20:05:45 -04:00
2013-09-12 17:17:33 -04:00
2.14.1
-----------
- Fix misc Web UI issues due to ERB conversion.
- Bump redis-namespace version due to security issue.
2013-08-22 14:47:50 -04:00
2.14.0
2013-08-15 22:52:50 -04:00
-----------
- Removed slim gem dependency, Web UI now uses ERB [Locke23rus, #1120]
2013-08-15 22:52:50 -04:00
- Fix more race conditions in Web UI actions
2013-08-15 23:06:16 -04:00
- Don't reset Job enqueued\_at when retrying
- Timestamp tooltips in the Web UI should use UTC
- Fix invalid usage of handle\_exception causing issues in Airbrake
[#1134]
2013-08-15 22:52:50 -04:00
2013-07-20 22:03:25 -04:00
2.13.1
-----------
2013-07-27 19:14:07 -04:00
- Make Sidekiq::Middleware::Chain Enumerable
- Make summary bar and graphs responsive [manishval, #1025]
- Adds a job status page for scheduled jobs [jonhyman]
2013-08-10 15:51:23 -04:00
- Handle race condition in retrying and deleting jobs in the Web UI
- The Web UI relative times are now i18n. [MadRabbit, #1088]
2013-08-01 16:33:58 -04:00
- Allow for default number of retry attempts to be set for
`Sidekiq::Middleware::Server::RetryJobs` middleware. [czarneckid] [#1091]
2013-08-01 16:33:58 -04:00
2013-08-10 15:51:23 -04:00
```ruby
Sidekiq.configure_server do |config|
config.server_middleware do |chain|
2013-08-22 02:12:32 -04:00
chain.add Sidekiq::Middleware::Server::RetryJobs, :max_retries => 10
2013-08-10 15:51:23 -04:00
end
end
```
2013-07-20 22:03:25 -04:00
2013-06-28 13:45:36 -04:00
2.13.0
-----------
2013-07-27 19:14:07 -04:00
- Adding button to move scheduled job to main queue [guiceolin, #1020]
- fix i18n support resetting saved locale when job is retried [#1011]
- log rotation via USR2 now closes the old logger [#1008]
- Add ability to customize retry schedule, like so [jmazzi, #1027]
2013-06-26 00:10:46 -04:00
```ruby
class MyWorker
include Sidekiq::Worker
sidekiq_retry_in { |count| count * 2 }
end
```
- Redesign Worker#retries\_exhausted callback to use same form as above [jmazzi, #1030]
2013-06-28 13:45:36 -04:00
```ruby
class MyWorker
include Sidekiq::Worker
sidekiq_retries_exhausted do |msg|
Rails.logger.error "Failed to process #{msg['class']} with args: #{msg['args']}"
end
end
```
2013-06-12 22:51:12 -04:00
2.12.4
-----------
- Fix error in previous release which crashed the Manager when a
Processor died.
2013-06-08 00:15:46 -04:00
2.12.3
-----------
- Revert back to Celluloid's TaskFiber for job processing which has proven to be more
stable than TaskThread. [#985]
- Avoid possible lockup during hard shutdown [#997]
2013-06-08 00:15:46 -04:00
At this point, if you are experiencing stability issues with Sidekiq in
Ruby 1.9, please try Ruby 2.0. It seems to be more stable.
2.12.2
2013-06-01 09:18:57 -04:00
-----------
- Relax slim version requirement to >= 1.1.0
2013-06-01 09:18:57 -04:00
- Refactor historical stats to use TTL, not explicit cleanup. [grosser, #971]
2013-05-31 00:19:11 -04:00
2.12.1
-----------
2013-05-31 00:19:11 -04:00
- Force Celluloid 0.14.1 as 0.14.0 has a serious bug. [#954]
- Scheduled and Retry jobs now use Sidekiq::Client to push
jobs onto the queue, so they use client middleware. [dimko, #948]
- Record the timestamp when jobs are enqueued. Add
2013-05-24 01:58:06 -04:00
Sidekiq::Job#enqueued\_at to query the time. [mariovisic, #944]
- Add Sidekiq::Queue#latency - calculates diff between now and
enqueued\_at for the oldest job in the queue.
- Add testing method `perform_one` that dequeues and performs a single job.
This is mainly to aid testing jobs that spawn other jobs. [fumin, #963]
2.12.0
2013-05-02 14:29:52 -04:00
-----------
- Upgrade to Celluloid 0.14, remove the use of Celluloid's thread
pool. This should halve the number of threads in each Sidekiq
process, thus requiring less resources. [#919]
- Abstract Celluloid usage to Sidekiq::Actor for testing purposes.
- Better handling for Redis downtime when fetching jobs and shutting
down, don't print exceptions every second and print success message
when Redis is back.
- Fix unclean shutdown leading to duplicate jobs [#897]
2013-05-02 14:29:52 -04:00
- Add Korean locale [#890]
2013-05-12 17:33:49 -04:00
- Upgrade test suite to Minitest 5
- Remove usage of `multi_json` as `json` is now robust on all platforms.
2013-05-02 14:29:52 -04:00
2013-04-27 16:48:07 -04:00
2.11.2
-----------
2013-05-01 15:32:04 -04:00
- Fix Web UI when used without Rails [#886]
- Add Sidekiq::Stats#reset [#349]
2013-04-27 16:48:07 -04:00
- Add Norwegian locale.
- Updates for the JA locale.
2013-04-25 12:03:54 -04:00
2.11.1
-----------
- Fix timeout warning.
- Add Dutch web UI locale.
2.11.0
-----------
2013-04-21 16:54:16 -04:00
- Upgrade to Celluloid 0.13. [#834]
- Remove **timeout** support from `sidekiq_options`. Ruby's timeout
is inherently unsafe in a multi-threaded application and was causing
stability problems for many. See http://bit.ly/OtYpK
2013-04-24 23:22:13 -04:00
- Add Japanese locale for Web UI [#868]
2013-04-19 01:14:22 -04:00
- Fix a few issues with Web UI i18n.
2.10.1
-----------
- Remove need for the i18n gem. (brandonhilkert)
2013-04-18 12:06:23 -04:00
- Improve redis connection info logging on startup for debugging
purposes [#858]
- Revert sinatra/slim as runtime dependencies
- Add `find_job` method to sidekiq/api
2.10.0
-----------
2013-04-12 11:55:56 -04:00
- Refactor algorithm for putting scheduled jobs onto the queue [#843]
- Fix scheduler thread dying due to incorrect error handling [#839]
- Fix issue which left stale workers if Sidekiq wasn't shutdown while
quiet. [#840]
- I18n for web UI. Please submit translations of `web/locales/en.yml` for
your own language. [#811]
- 'sinatra', 'slim' and 'i18n' are now gem dependencies for Sidekiq.
2013-03-27 02:03:03 -04:00
2.9.0
2013-03-21 16:39:55 -04:00
-----------
- Update 'sidekiq/testing' to work with any Sidekiq::Client call. It
also serializes the arguments as using Redis would. [#713]
- Raise a Sidekiq::Shutdown error within workers which don't finish within the hard
2013-03-27 02:03:03 -04:00
timeout. This is to prevent unwanted database transaction commits. [#377]
- Lazy load Redis connection pool, you no longer need to specify
anything in Passenger or Unicorn's after_fork callback [#794]
- Add optional Worker#retries_exhausted hook after max retries failed. [jkassemi, #780]
2013-03-21 16:39:55 -04:00
- Fix bug in pagination link to last page [pitr, #774]
- Upstart scripts for multiple Sidekiq instances [dariocravero, #763]
- Use select via pipes instead of poll to catch signals [mrnugget, #761]
2.8.0
-----------
2013-03-03 19:10:50 -05:00
- I18n support! Sidekiq can optionally save and restore the Rails locale
so it will be properly set when your jobs execute. Just include
`require 'sidekiq/middleware/i18n'` in your sidekiq initializer. [#750]
2013-03-02 19:08:59 -05:00
- Fix bug which could lose messages when using namespaces and the message
needs to be requeued in Redis. [#744]
- Refactor Redis namespace support [#747]. The redis namespace can no longer be
passed via the config file, the only supported way is via Ruby in your
initializer:
```ruby
sidekiq_redis = { :url => 'redis://localhost:3679', :namespace => 'foo' }
Sidekiq.configure_server { |config| config.redis = sidekiq_redis }
Sidekiq.configure_client { |config| config.redis = sidekiq_redis }
```
2013-03-02 19:08:59 -05:00
A warning is printed out to the log if a namespace is found in your sidekiq.yml.
2.7.5
-----------
2013-02-25 12:39:01 -05:00
- Capistrano no longer uses daemonization in order to work with JRuby [#719]
- Refactor signal handling to work on Ruby 2.0 [#728, #730]
2013-02-25 12:39:01 -05:00
- Fix dashboard refresh URL [#732]
2013-02-22 16:35:56 -05:00
2.7.4
-----------
- Fixed daemonization, was broken by some internal refactoring in 2.7.3 [#727]
2013-02-20 22:38:36 -05:00
2.7.3
-----------
- Real-time dashboard is now the default web page
- Make config file optional for capistrano
- Fix Retry All button in the Web UI
2013-02-08 11:38:04 -05:00
2.7.2
-----------
- Remove gem signing infrastructure. It was causing Sidekiq to break
when used via git in Bundler. This is why we can't have nice things. [#688]
2013-02-05 22:38:50 -05:00
2.7.1
-----------
- Fix issue with hard shutdown [#680]
2013-01-29 15:28:02 -05:00
2.7.0
2013-01-18 23:57:26 -05:00
-----------
2013-01-29 15:28:02 -05:00
- Add -d daemonize flag, capistrano recipe has been updated to use it [#662]
2013-01-27 17:03:40 -05:00
- Support profiling via `ruby-prof` with -p. When Sidekiq is stopped
via Ctrl-C, it will output `profile.html`. You must add `gem 'ruby-prof'` to your Gemfile for it to work.
- Dynamically update Redis stats on dashboard [brandonhilkert]
2013-01-24 12:50:30 -05:00
- Add Sidekiq::Workers API giving programmatic access to the current
set of active workers.
```
workers = Sidekiq::Workers.new
workers.size => 2
workers.each do |name, work|
# name is a unique identifier per Processor instance
# work is a Hash which looks like:
# { 'queue' => name, 'run_at' => timestamp, 'payload' => msg }
end
```
2013-01-18 23:57:26 -05:00
- Allow environment-specific sections within the config file which
override the global values [dtaniwaki, #630]
```
---
:concurrency: 50
:verbose: false
staging:
:verbose: true
:concurrency: 5
```
2013-01-16 16:08:20 -05:00
2.6.5
-----------
2013-01-17 01:02:04 -05:00
- Several reliability fixes for job requeueing upon termination [apinstein, #622, #624]
2013-01-16 16:08:20 -05:00
- Fix typo in capistrano recipe
- Add `retry_queue` option so retries can be given lower priority [ryanlower, #620]
```ruby
sidekiq_options queue: 'high', retry_queue: 'low'
```
2013-01-08 11:43:34 -05:00
2.6.4
-----------
- Fix crash upon empty queue [#612]
2013-01-07 23:41:04 -05:00
2.6.3
-----------
- sidekiqctl exits with non-zero exit code upon error [jmazzi]
- better argument validation in Sidekiq::Client [karlfreeman]
2013-01-03 11:43:04 -05:00
2.6.2
-----------
2013-01-02 19:37:05 -05:00
- Add Dashboard beacon indicating when stats are updated. [brandonhilkert, #606]
2013-01-03 11:43:04 -05:00
- Revert issue with capistrano restart. [#598]
2013-01-02 19:37:05 -05:00
2012-12-31 16:25:27 -05:00
2.6.1
2012-12-20 15:57:38 -05:00
-----------
2012-12-29 23:10:36 -05:00
- Dashboard now live updates summary stats also. [brandonhilkert, #605]
2012-12-20 15:57:38 -05:00
- Add middleware chain APIs `insert_before` and `insert_after` for fine
tuning the order of middleware. [jackrg, #595]
2012-12-10 23:44:43 -05:00
2.6.0
-----------
2012-12-13 22:42:27 -05:00
- Web UI much more mobile friendly now [brandonhilkert, #573]
- Enable live polling for every section in Web UI [brandonhilkert, #567]
- Add Stats API [brandonhilkert, #565]
- Add Stats::History API [brandonhilkert, #570]
- Add Dashboard to Web UI with live and historical stat graphs [brandonhilkert, #580]
- Add option to log output to a file, reopen log file on USR2 signal [mrnugget, #581]
2012-12-04 16:39:27 -05:00
2012-11-26 23:19:23 -05:00
2.5.4
2012-11-08 12:05:11 -05:00
-----------
2012-11-15 23:38:52 -05:00
- `Sidekiq::Client.push` now accepts the worker class as a string so the
Sidekiq client does not have to load your worker classes at all. [#524]
2012-11-19 22:31:05 -05:00
- `Sidekiq::Client.push_bulk` now works with inline testing.
- **Really** fix status icon in Web UI this time.
- Add "Delete All" and "Retry All" buttons to Retries in Web UI
2012-11-15 23:38:52 -05:00
2.5.3
-----------
2012-11-14 00:01:18 -05:00
- Small Web UI fixes
2012-11-08 12:05:11 -05:00
- Add `delay_until` so you can delay jobs until a specific timestamp:
```ruby
Auction.delay_until(@auction.ends_at).close(@auction.id)
```
This is identical to the existing Sidekiq::Worker method, `perform_at`.
2012-11-02 17:32:37 -04:00
2.5.2
-----------
2012-11-02 15:55:45 -04:00
- Remove asset pipeline from Web UI for much faster, simpler runtime. [#499, #490, #481]
- Add -g option so the procline better identifies a Sidekiq process, defaults to File.basename(Rails.root). [#486]
sidekiq 2.5.1 myapp [0 of 25 busy]
- Add splay to retry time so groups of failed jobs don't fire all at once. [#483]
2012-10-30 17:13:42 -04:00
2.5.1
-----------
- Fix issues with core\_ext
2.5.0
-----------
- REDESIGNED WEB UI! [unity, cavneb]
2012-10-27 15:49:32 -04:00
- Support Honeybadger for error delivery
2012-10-26 00:37:33 -04:00
- Inline testing runs the client middleware before executing jobs [#465]
- Web UI can now remove jobs from queue. [#466, dleung]
- Web UI can now show the full message, not just 100 chars [#464, dleung]
- Add APIs for manipulating the retry and job queues. See sidekiq/api. [#457]
2012-10-19 16:11:58 -04:00
2.4.0
-----------
- ActionMailer.delay.method now only tries to deliver if method returns a valid message.
2012-10-18 14:31:36 -04:00
- Logging now uses "MSG-#{Job ID}", not a random msg ID
- Allow generic Redis provider as environment variable. [#443]
- Add ability to customize sidekiq\_options with delay calls [#450]
```ruby
Foo.delay(:retry => false).bar
Foo.delay(:retry => 10).bar
Foo.delay(:timeout => 10.seconds).bar
Foo.delay_for(5.minutes, :timeout => 10.seconds).bar
```
2012-10-01 11:13:41 -04:00
2.3.3
-----------
- Remove option to disable Rails hooks. [#401]
2012-09-30 12:29:32 -04:00
- Allow delay of any module class method
2012-09-20 09:44:28 -04:00
2.3.2
-----------
- Fix retry. 2.3.1 accidentally disabled it.
2.3.1
-----------
2012-09-13 20:38:56 -04:00
- Add Sidekiq::Client.push\_bulk for bulk adding of jobs to Redis.
2012-09-13 12:18:32 -04:00
My own simple test case shows pushing 10,000 jobs goes from 5 sec to 1.5 sec.
- Add support for multiple processes per host to Capistrano recipe
2012-09-13 20:38:56 -04:00
- Re-enable Celluloid::Actor#defer to fix stack overflow issues [#398]
2012-09-04 23:50:37 -04:00
2.3.0
-----------
- Upgrade Celluloid to 0.12
- Upgrade Twitter Bootstrap to 2.1.0
- Rescue more Exceptions
- Change Job ID to be Hex, rather than Base64, for HTTP safety
2012-09-06 13:49:58 -04:00
- Use `Airbrake#notify_or_ignore`
2012-09-04 23:50:37 -04:00
2012-08-22 22:31:02 -04:00
2.2.1
2012-08-19 14:31:20 -04:00
-----------
2012-08-20 18:40:24 -04:00
- Add support for custom tabs to Sidekiq::Web [#346]
2012-08-19 14:31:20 -04:00
- Change capistrano recipe to run 'quiet' before deploy:update\_code so
it is run upon both 'deploy' and 'deploy:migrations'. [#352]
- Rescue Exception rather than StandardError to catch and log any sort
of Processor death.
2012-08-19 14:31:20 -04:00
2012-08-16 21:31:51 -04:00
2.2.0
2012-08-11 14:47:25 -04:00
-----------
2012-08-16 21:36:48 -04:00
- Roll back Celluloid optimizations in 2.1.0 which caused instability.
- Add extension to delay any arbitrary class method to Sidekiq.
Previously this was limited to ActiveRecord classes.
```ruby
SomeClass.delay.class_method(1, 'mike', Date.today)
```
2012-08-11 14:47:25 -04:00
- Sidekiq::Client now generates and returns a random, 128-bit Job ID 'jid' which
can be used to track the processing of a Job, e.g. for calling back to a webhook
when a job is finished.
2012-08-07 11:50:13 -04:00
2.1.1
-----------
- Handle networking errors causing the scheduler thread to die [#309]
2012-08-02 23:49:38 -04:00
- Rework exception handling to log all Processor and actor death (#325, subelsky)
- Clone arguments when calling worker so modifications are discarded. (#265, hakanensari)
2012-07-20 23:11:16 -04:00
2.1.0
-----------
- Tune Celluloid to no longer run message processing within a Fiber.
This gives us a full Thread stack and also lowers Sidekiq's memory
usage.
2012-07-20 23:11:16 -04:00
- Add pagination within the Web UI [#253]
- Specify which Redis driver to use: *hiredis* or *ruby* (default)
2012-07-20 23:19:12 -04:00
- Remove FailureJobs and UniqueJobs, which were optional middleware
that I don't want to support in core. [#302]
2012-06-20 11:32:05 -04:00
2.0.3
-----------
2012-06-21 23:53:57 -04:00
- Fix sidekiq-web's navbar on mobile devices and windows under 980px (ezkl)
- Fix Capistrano task for first deploys [#259]
- Worker subclasses now properly inherit sidekiq\_options set in
their superclass [#221]
- Add random jitter to scheduler to spread polls across POLL\_INTERVAL
window. [#247]
2012-06-21 23:53:57 -04:00
- Sidekiq has a new mailing list: sidekiq@librelist.org See README.
2012-06-13 00:55:06 -04:00
2.0.2
-----------
- Fix "Retry Now" button on individual retry page. (ezkl)
2.0.1
-----------
2012-06-05 11:38:05 -04:00
- Add "Clear Workers" button to UI. If you kill -9 Sidekiq, the workers
set can fill up with stale entries.
- Update sidekiq/testing to support new scheduled jobs API:
2012-06-04 13:10:16 -04:00
```ruby
require 'sidekiq/testing'
DirectWorker.perform_in(10.seconds, 1, 2)
assert_equal 1, DirectWorker.jobs.size
assert_in_delta 10.seconds.from_now.to_f, DirectWorker.jobs.last['at'], 0.01
```
2.0.0
-----------
2012-06-01 11:24:01 -04:00
- **SCHEDULED JOBS**!
2012-05-25 23:31:15 -04:00
You can now use `perform_at` and `perform_in` to schedule jobs
to run at arbitrary points in the future, like so:
```ruby
SomeWorker.perform_in(5.days, 'bob', 13)
SomeWorker.perform_at(5.days.from_now, 'bob', 13)
```
It also works with the delay extensions:
```ruby
UserMailer.delay_for(5.days).send_welcome_email(user.id)
```
The time is approximately when the job will be placed on the queue;
it is not guaranteed to run at precisely at that moment in time.
This functionality is meant for one-off, arbitrary jobs. I still
recommend `whenever` or `clockwork` if you want cron-like,
recurring jobs. See `examples/scheduling.rb`
I want to specially thank @yabawock for his work on sidekiq-scheduler.
His extension for Sidekiq 1.x filled an obvious functional gap that I now think is
useful enough to implement in Sidekiq proper.
2012-05-26 21:38:55 -04:00
- Fixed issues due to Redis 3.x API changes. Sidekiq now requires
the Redis 3.x client.
2012-06-01 11:24:01 -04:00
- Inline testing now round trips arguments through JSON to catch
serialization issues (betelgeuse)
2012-05-26 21:38:55 -04:00
1.2.1
-----------
- Sidekiq::Worker now has access to Sidekiq's standard logger
- Fix issue with non-StandardErrors leading to Processor exhaustion
- Fix issue with Fetcher slowing Sidekiq shutdown
2012-05-15 22:50:20 -04:00
- Print backtraces for all threads upon TTIN signal [#183]
- Overhaul retries Web UI with new index page and bulk operations [#184]
1.2.0
-----------
- Full or partial error backtraces can optionally be stored as part of the retry
for display in the web UI if you aren't using an error service. [#155]
```ruby
class Worker
include Sidekiq::Worker
sidekiq_options :backtrace => [true || 10]
end
```
2012-05-05 00:58:05 -04:00
- Add timeout option to kill a worker after N seconds (blackgold9)
```ruby
class HangingWorker
include Sidekiq::Worker
sidekiq_options :timeout => 600
def perform
# will be killed if it takes longer than 10 minutes
end
end
```
- Fix delayed extensions not available in workers [#152]
- In test environments add the `#drain` class method to workers. This method
executes all previously queued jobs. (panthomakos)
- Sidekiq workers can be run inline during tests, just `require 'sidekiq/testing/inline'` (panthomakos)
- Queues can now be deleted from the Sidekiq web UI [#154]
2012-05-06 23:15:34 -04:00
- Fix unnecessary shutdown delay due to Retry Poller [#174]
1.1.4
-----------
- Add 24 hr expiry for basic keys set in Redis, to avoid any possible leaking.
- Only register workers in Redis while working, to avoid lingering
workers [#156]
2012-04-24 23:12:43 -04:00
- Speed up shutdown significantly.
2012-04-19 22:42:39 -04:00
1.1.3
-----------
2012-04-18 23:13:10 -04:00
- Better network error handling when fetching jobs from Redis.
Sidekiq will retry once per second until it can re-establish
2012-04-19 22:42:39 -04:00
a connection. (ryanlecompte)
- capistrano recipe now uses `bundle_cmd` if set [#147]
2012-04-22 22:22:09 -04:00
- handle multi\_json API changes (sferik)
1.1.2
-----------
- Fix double restart with cap deploy [#137]
1.1.1
-----------
- Set procline for easy monitoring of Sidekiq status via "ps aux"
- Fix race condition on shutdown [#134]
- Fix hang with cap sidekiq:start [#131]
2012-04-15 17:59:32 -04:00
1.1.0
-----------
2012-04-12 10:09:27 -04:00
- The Sidekiq license has switched from GPLv3 to LGPLv3!
- Sidekiq::Client.push now returns whether the actual Redis
operation succeeded or not. [#123]
- Remove UniqueJobs from the default middleware chain. Its
functionality, while useful, is unexpected for new Sidekiq
users. You can re-enable it with the following config.
Read #119 for more discussion.
```ruby
2012-04-12 10:09:38 -04:00
Sidekiq.configure_client do |config|
require 'sidekiq/middleware/client/unique_jobs'
2012-04-18 03:53:56 -04:00
config.client_middleware do |chain|
2012-04-12 10:09:38 -04:00
chain.add Sidekiq::Middleware::Client::UniqueJobs
end
end
2012-04-12 10:09:38 -04:00
Sidekiq.configure_server do |config|
require 'sidekiq/middleware/server/unique_jobs'
2012-04-12 10:09:38 -04:00
config.server_middleware do |chain|
chain.add Sidekiq::Middleware::Server::UniqueJobs
end
end
```
2012-04-10 11:41:59 -04:00
1.0.0
-----------
Thanks to all Sidekiq users and contributors for helping me
get to this big milestone!
- Default concurrency on client-side to 5, not 25 so we don't
create as many unused Redis connections, same as ActiveRecord's
default pool size.
- Ensure redis= is given a Hash or ConnectionPool.
2012-04-06 22:53:13 -04:00
0.11.2
-----------
2012-04-07 00:05:14 -04:00
- Implement "safe shutdown". The messages for any workers that
2012-04-18 03:53:56 -04:00
are still busy when we hit the TERM timeout will be requeued in
2012-04-07 00:05:14 -04:00
Redis so the messages are not lost when the Sidekiq process exits.
[#110]
2012-04-06 22:53:13 -04:00
- Work around Celluloid's small 4kb stack limit [#115]
- Add support for a custom Capistrano role to limit Sidekiq to
a set of machines. [#113]
2012-04-03 23:52:14 -04:00
0.11.1
2012-03-30 11:57:30 -04:00
-----------
- Fix fetch breaking retry when used with Redis namespaces. [#109]
2012-04-03 23:00:20 -04:00
- Redis connection now just a plain ConnectionPool, not CP::Wrapper.
- Capistrano initial deploy fix [#106]
2012-04-03 23:46:34 -04:00
- Re-implemented weighted queues support (ryanlecompte)
0.11.0
-----------
- Client-side API changes, added sidekiq\_options for Sidekiq::Worker.
As a side effect of this change, the client API works on Ruby 1.8.
It's not officially supported but should work [#103]
2012-03-31 00:43:12 -04:00
- NO POLL! Sidekiq no longer polls Redis, leading to lower network
2012-04-03 23:58:12 -04:00
utilization and lower latency for message processing.
- Add --version CLI option
2012-03-30 11:57:30 -04:00
2012-03-30 00:06:05 -04:00
0.10.1
2012-03-29 15:03:36 -04:00
-----------
2012-03-30 00:06:05 -04:00
2012-03-29 15:03:36 -04:00
- Add details page for jobs in retry queue (jcoene)
2012-03-29 17:01:18 -04:00
- Display relative timestamps in web interface (jcoene)
2012-03-30 00:06:05 -04:00
- Capistrano fixes (hinrik, bensie)
2012-03-29 15:03:36 -04:00
2012-03-18 02:04:31 -04:00
0.10.0
-----------
2012-03-28 11:45:11 -04:00
- Reworked capistrano recipe to make it more fault-tolerant [#94].
2012-03-18 02:04:31 -04:00
- Automatic failure retry! Sidekiq will now save failed messages
and retry them, with an exponential backoff, over about 20 days.
Did a message fail to process? Just deploy a bug fix in the next
few days and Sidekiq will retry the message eventually.
2012-03-17 12:41:24 -04:00
0.9.1
-----------
- Fix missed deprecations, poor method name in web UI
2012-03-13 23:14:57 -04:00
0.9.0
-----------
2012-03-13 23:14:57 -04:00
- Add -t option to configure the TERM shutdown timeout
- TERM shutdown timeout is now configurable, defaults to 5 seconds.
- USR1 signal now stops Sidekiq from accepting new work,
capistrano sends USR1 at start of deploy and TERM at end of deploy
2012-03-13 23:14:57 -04:00
giving workers the maximum amount of time to finish.
- New Sidekiq::Web rack application available
- Updated Sidekiq.redis API
2012-03-02 14:47:55 -05:00
0.8.0
2012-02-22 16:04:43 -05:00
-----------
2012-02-28 00:13:49 -05:00
- Remove :namespace and :server CLI options (mperham)
- Add ExceptionNotifier support (masterkain)
2012-02-27 00:09:02 -05:00
- Add capistrano support (mperham)
2012-02-26 23:36:30 -05:00
- Workers now log upon start and finish (mperham)
- Messages for terminated workers are now automatically requeued (mperham)
2012-02-22 16:04:43 -05:00
- Add support for Exceptional error reporting (bensie)
2012-02-21 19:09:01 -05:00
0.7.0
-----------
2012-02-18 01:04:18 -05:00
2012-02-22 00:04:59 -05:00
- Example chef recipe and monitrc script (jc00ke)
2012-02-21 19:09:01 -05:00
- Refactor global configuration into Sidekiq.configure\_server and
Sidekiq.configure\_client blocks. (mperham)
2012-02-18 23:11:24 -05:00
- Add optional middleware FailureJobs which saves failed jobs to a
'failed' queue (fbjork)
2012-02-18 16:08:53 -05:00
- Upon shutdown, workers are now terminated after 5 seconds. This is to
meet Heroku's hard limit of 10 seconds for a process to shutdown. (mperham)
- Refactor middleware API for simplicity, see sidekiq/middleware/chain. (mperham)
- Add `delay` extensions for ActionMailer and ActiveRecord. (mperham)
- Added config file support. See test/config.yml for an example file. (jc00ke)
- Added pidfile for tools like monit (jc00ke)
2012-02-14 18:30:18 -05:00
0.6.0
2012-02-08 23:46:17 -05:00
-----------
2012-02-11 02:21:50 -05:00
- Resque-compatible processing stats in redis (mperham)
- Simple client testing support in sidekiq/testing (mperham)
- Plain old Ruby support via the -r cli flag (mperham)
- Refactored middleware support, introducing ability to add client-side middleware (ryanlecompte)
- Added middleware for ignoring duplicate jobs (ryanlecompte)
- Added middleware for displaying jobs in resque-web dashboard (maxjustus)
- Added redis namespacing support (maxjustus)
2012-02-11 02:21:50 -05:00
0.5.1
-----------
- Initial release!