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

37 commits

Author SHA1 Message Date
Mike Perham
7d2b387d94 merge 2.17.5 stuff 2014-02-15 23:49:56 -08:00
Sean Doyle
e12bf878fa Replaced class and instance level send
Replaced with `__send__` from std lib

* `send` can now be overridden to be more semantically meaningful
  * `message.send(user_id)` as opposed to `message.send_message(user_id)`
* `__send__` makes it clear that the reflective version is intended
2014-02-14 09:43:34 -05:00
Mike Perham
2e1ffbc82b Merge branch 'master' into 3-0 2014-02-09 15:09:22 -08:00
Mike Perham
2f4d3686ec Store timestamps as floats, not strings, fixes #1473 2014-02-09 15:08:21 -08:00
Mike Perham
efde6831da fix test 2014-02-01 21:30:45 -08:00
Mike Perham
d24f02c7a9 Fix tests 2013-10-27 14:02:09 -07:00
Mike Perham
babfdc96c5 Backport test suite to Minitest 4 so we can test against Rails 4. 2013-09-22 14:38:33 -07:00
David Czarnecki
3f0d7e32a4 Allow for default number of retry attempts to be set for RetryJobs middleware.
* Adds `max_retries` option to RetryJobs middleware. Default is still 25. This
  way you can still retry jobs, but not have it spread out over such a long
  period.

Modify `Sidekiq::Middleware::Chain#add` semantics

* If middleware class already exists in the chain, remove the
  existing class and add it with possibly new arguments.
2013-08-01 16:23:50 -04:00
Justin Mazzi
b41fcd2d1e Pass the entire message to sidekiq_retries_exhausted 2013-06-27 12:22:50 -04:00
Justin Mazzi
f58f6b1947 Add link to Error-Handling wiki page 2013-06-27 11:58:23 -04:00
Justin Mazzi
5200b282ea Allow retries_exhausted to be defined in a block
sidekiq_retries_exhausted { |*args| }
2013-06-26 13:50:19 -04:00
Mike Perham
c76dd42d55 Refactor sidekiq_retry_in impl 2013-06-25 21:10:46 -07:00
Justin Mazzi
9e5e745a1f space fix 2013-06-25 14:11:19 -04:00
Justin Mazzi
8983f4446a Log retry delay failures and fallback to the default 2013-06-25 12:35:11 -04:00
Justin Mazzi
6d023a61b9 Add custom retry delay 2013-06-25 11:07:45 -04:00
Mike Perham
4679c95f49 Upgrade to Minitest 5 2013-05-12 14:25:30 -07:00
Brian Durand
0c76c3bade Change poller to pop messages one at a time so they don't get lost if something goes wrong during a large pop operation. 2013-04-10 17:38:36 -07:00
Mike Perham
879995dd08 actually test exhausted feature 2013-03-21 14:37:41 -07:00
James Kassemi
5824857b59 'exhausted' changed to 'retries_exhausted'
Additionally, any errors raised during retries_exhausted hook
are logged and dropped before resuming original control flow.
2013-03-21 12:16:07 -06:00
James Kassemi
172434d459 Call 'exhausted' worker method after retries
When the maximum number of retries is hit and the message is about
to be thrown away, give the option of allowing the worker to say
goodbye by defining an 'exhausted' method on the worker.
2013-03-18 15:20:28 -06:00
Ryan Lower
b199d37efd Allow specification of retry_queue in sidekiq_options 2013-01-15 17:28:52 -08:00
Mike Perham
1d85edef1b Fix retry off by one, #512 2012-11-09 21:36:40 -08:00
Mike Perham
b983956e76 JRuby 1.7 compat fixes 2012-11-01 16:08:27 -07:00
Noah Davis
bc1e38f85a use 'retry' option to customize max retry attempts
e.g.
{ 'class' => 'HardWorker', 'args' => [1, 2, 'foo'], 'retry' => 5 }

Addresses Issue #313
2012-10-17 18:58:07 -04:00
James Le Cuirot
1de18da247 The test for throwing away after too many retries didn't actually test anything! 2012-10-16 14:55:04 +01:00
Mike Perham
c232f5e53b fix test 2012-07-06 22:06:11 -07:00
Mike Perham
b486fcf6e0 Fix Redis 3.x API issues 2012-05-26 18:38:55 -07:00
Mike Perham
2c4be4cada Scheduled jobs! Bump to 2.0.0.
Performs can now be scheduled at arbitrary points in the future.
2012-05-25 20:21:42 -07:00
Mike Perham
e65efd5f0a Implement optional backtrace storage [#155] 2012-04-27 20:25:46 -07:00
Erik Michaels-Ober
5eb8d397f0 Refactor to use Sidekiq.dump_json and Sidekiq.load_json
These methods perform MultiJson feature detection and can be removed
after this library's MultiJson dependency is upgraded to ~> 2.0.
2012-04-22 14:02:35 -07:00
Erik Michaels-Ober
68c725e47b Let's try this again...
Use `Object#respond_to?` to determine which MultiJson API to use.
2012-04-22 13:46:00 -07:00
Mike Perham
9c6b967029 Revert "Use MultiJson APIs introduced in version 1.3 to suppress deprecation warnings"
Breaks Rails 3.2 and lower

This reverts commit 9c6d5623a1.
2012-04-18 14:57:24 -07:00
Erik Michaels-Ober
9c6d5623a1 Use MultiJson APIs introduced in version 1.3 to suppress deprecation warnings 2012-04-18 10:51:25 -07:00
Mike Perham
2080412119 Client API update:
- Add API for configuring options per Worker class
- Removed the Client API issues preventing it working on Ruby 1.8
- Cleanups to various APIs for upcoming 1.0 release.
2012-04-01 19:53:45 -07:00
Mike Perham
e38a3d785a Auto failure retry now working! 2012-03-17 23:04:31 -07:00
Mike Perham
b782c05e1b Test cleanup 2012-03-17 21:36:33 -07:00
Mike Perham
97ddc29208 initial retry testing 2012-03-17 18:22:56 -07:00