2012-08-16 21:31:51 -04:00
|
|
|
2.2.0
|
2012-08-11 14:47:25 -04:00
|
|
|
-----------
|
|
|
|
|
2012-08-16 19:43:01 -04:00
|
|
|
- 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
|
2012-07-30 13:23:34 -04:00
|
|
|
-----------
|
|
|
|
|
|
|
|
- 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)
|
2012-08-04 15:30:49 -04:00
|
|
|
- Clone arguments when calling worker so modifications are discarded. (#265, hakanensari)
|
2012-07-30 13:23:34 -04:00
|
|
|
|
2012-07-20 23:11:16 -04:00
|
|
|
2.1.0
|
2012-06-21 23:51:47 -04:00
|
|
|
-----------
|
|
|
|
|
2012-07-17 10:11:11 -04:00
|
|
|
- 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-21 23:51:47 -04:00
|
|
|
|
2012-06-20 11:32:05 -04:00
|
|
|
2.0.3
|
2012-06-14 11:36:00 -04:00
|
|
|
-----------
|
2012-06-21 23:53:57 -04:00
|
|
|
- Fix sidekiq-web's navbar on mobile devices and windows under 980px (ezkl)
|
2012-06-20 02:44:10 -04:00
|
|
|
- Fix Capistrano task for first deploys [#259]
|
2012-06-16 23:56:55 -04:00
|
|
|
- Worker subclasses now properly inherit sidekiq\_options set in
|
|
|
|
their superclass [#221]
|
2012-06-14 11:36:00 -04:00
|
|
|
- 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-14 11:36:00 -04:00
|
|
|
|
2012-06-13 00:55:06 -04:00
|
|
|
2.0.2
|
|
|
|
-----------
|
|
|
|
|
|
|
|
- Fix "Retry Now" button on individual retry page. (ezkl)
|
|
|
|
|
2012-06-03 14:03:22 -04:00
|
|
|
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.
|
2012-06-03 14:03:22 -04:00
|
|
|
- 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
|
|
|
|
```
|
2012-06-03 14:03:22 -04:00
|
|
|
|
2012-05-25 23:21:42 -04:00
|
|
|
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
|
2012-05-25 23:21:42 -04:00
|
|
|
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
|
|
|
|
2012-05-11 19:48:03 -04:00
|
|
|
1.2.1
|
|
|
|
-----------
|
|
|
|
|
2012-05-12 17:00:42 -04:00
|
|
|
- Sidekiq::Worker now has access to Sidekiq's standard logger
|
|
|
|
- Fix issue with non-StandardErrors leading to Processor exhaustion
|
2012-05-12 00:25:38 -04:00
|
|
|
- Fix issue with Fetcher slowing Sidekiq shutdown
|
2012-05-15 22:50:20 -04:00
|
|
|
- Print backtraces for all threads upon TTIN signal [#183]
|
2012-05-12 00:23:24 -04:00
|
|
|
- Overhaul retries Web UI with new index page and bulk operations [#184]
|
2012-05-11 19:48:03 -04:00
|
|
|
|
2012-04-26 11:40:07 -04:00
|
|
|
1.2.0
|
2012-04-24 23:54:55 -04:00
|
|
|
-----------
|
|
|
|
|
2012-05-02 23:19:59 -04:00
|
|
|
- Full or partial error backtraces can optionally be stored as part of the retry
|
2012-04-27 23:25:46 -04:00
|
|
|
for display in the web UI if you aren't using an error service. [#155]
|
|
|
|
|
|
|
|
```ruby
|
|
|
|
class Worker
|
|
|
|
include Sidekiq::Worker
|
2012-05-02 23:19:59 -04:00
|
|
|
sidekiq_options :backtrace => [true || 10]
|
2012-04-27 23:25:46 -04:00
|
|
|
end
|
|
|
|
```
|
2012-05-05 00:58:05 -04:00
|
|
|
- Add timeout option to kill a worker after N seconds (blackgold9)
|
2012-04-26 11:40:07 -04:00
|
|
|
|
|
|
|
```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]
|
2012-05-02 13:59:31 -04:00
|
|
|
- In test environments add the `#drain` class method to workers. This method
|
2012-05-02 13:45:05 -04:00
|
|
|
executes all previously queued jobs. (panthomakos)
|
2012-05-02 23:19:59 -04:00
|
|
|
- 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]
|
2012-05-01 21:10:05 -04:00
|
|
|
|
2012-04-24 10:15:29 -04:00
|
|
|
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-24 10:15:29 -04:00
|
|
|
|
2012-04-19 22:42:39 -04:00
|
|
|
1.1.3
|
2012-04-18 19:31:17 -04:00
|
|
|
-----------
|
|
|
|
|
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)
|
2012-04-18 19:31:17 -04:00
|
|
|
|
2012-04-18 11:43:34 -04:00
|
|
|
1.1.2
|
|
|
|
-----------
|
|
|
|
|
|
|
|
- Fix double restart with cap deploy [#137]
|
|
|
|
|
2012-04-16 23:18:48 -04:00
|
|
|
1.1.1
|
2012-04-11 22:41:08 -04:00
|
|
|
-----------
|
|
|
|
|
2012-04-17 22:26:56 -04:00
|
|
|
- Set procline for easy monitoring of Sidekiq status via "ps aux"
|
2012-04-16 23:18:48 -04:00
|
|
|
- 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!
|
2012-04-11 22:41:08 -04:00
|
|
|
- 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|
|
2012-04-11 22:41:08 -04:00
|
|
|
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
|
2012-04-11 22:41:08 -04:00
|
|
|
end
|
2012-04-12 10:09:38 -04:00
|
|
|
Sidekiq.configure_server do |config|
|
2012-04-11 22:41:08 -04:00
|
|
|
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
|
2012-04-11 22:41:08 -04:00
|
|
|
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-05 23:18:11 -04:00
|
|
|
-----------
|
|
|
|
|
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]
|
2012-04-05 23:18:11 -04:00
|
|
|
- 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
|
|
|
-----------
|
|
|
|
|
2012-04-03 10:09:43 -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)
|
2012-04-03 10:09:43 -04:00
|
|
|
|
|
|
|
0.11.0
|
|
|
|
-----------
|
|
|
|
|
2012-04-01 22:53:45 -04:00
|
|
|
- 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.
|
2012-04-01 22:53:45 -04:00
|
|
|
- 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-08 23:58:51 -05:00
|
|
|
-----------
|
|
|
|
|
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.
|
2012-03-08 23:58:51 -05:00
|
|
|
- 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
|
2012-03-14 12:56:13 -04:00
|
|
|
- Updated Sidekiq.redis API
|
2012-03-08 23:58:51 -05:00
|
|
|
|
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)
|
2012-02-22 19:54:38 -05:00
|
|
|
- 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-15 21:13:32 -05:00
|
|
|
-----------
|
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-15 21:13:32 -05:00
|
|
|
|
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)
|
2012-02-11 02:02:01 -05:00
|
|
|
- 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!
|