Pan Thomakos
c65d053808
Made sidekiq/testing work for the #enqueue method.
...
I also upgraded the testing tests so that they can be run in separate
`it` blocks. The trick is to use `load` instead of `require` which allows the
file to be re-executed.
2012-05-01 14:20:35 -07:00
Mike Perham
c3c0dd1a93
Clean up client option merging
2012-04-29 13:22:39 -07:00
Mike Perham
e65efd5f0a
Implement optional backtrace storage [ #155 ]
2012-04-27 20:25:46 -07:00
Mike Perham
2ec203365e
Clean up timeout middleware, add client-side option [ #161 ]
2012-04-26 08:40:07 -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
4902d60134
Better client rdoc, remove deprecated api
2012-04-19 14:42:17 -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
56bda6248d
Remove UniqueJobs middleware from default chain, #119
2012-04-11 19:41:08 -07:00
Kim Burgestrand
fe57069fdc
Have Redis tell us if perform_async succeeded
...
If (for whatever reason) redis fails to add our
work to the queue, make sure we reflect that in
the return value.
2012-04-11 22:17:44 +02: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
b58d125659
Clean up requires
2012-03-31 12:45:24 -07:00
Mike Perham
74d0e5ec35
Upgrade to connection_pool 0.9.0
...
Remove all connection_pool usage of method_missing.
Change Sidekiq.redis API to require a block.
2012-03-14 09:56:13 -07:00
Mike Perham
d2263cbfe1
Add basic web testing, promote 'queues' set to core.
2012-03-10 13:07:19 -08:00
Mike Perham
8ee8137caa
Refactor options to be globally available for things like
...
connection pool sizing.
2012-02-19 13:05:19 -08:00
Mike Perham
6af6a86369
Refactor middleware API, this will break anyone using the old API.
...
e.g.
Sidekiq::Processor.middleware => Sidekiq.server_middleware
Sidekiq::Client.middleware => Sidekiq.client_middleware
2012-02-18 12:12:05 -08:00
Mike Perham
00501031df
One redis accessor to rule them all.
2012-02-17 13:39:36 -08:00
Mike Perham
ac5d879361
Add .registered_workers and .registered_queues to Sidekiq::Client
2012-02-15 11:28:19 -08:00
Mike Perham
64e72eef28
Revert "fetch queue list stored by middleware"
...
Client.queues is used by Worker#queue
This reverts commit ea2316bf81
.
2012-02-15 10:58:14 -08:00
Andre Arko
ea2316bf81
fetch queue list stored by middleware
2012-02-14 19:07:32 -08:00
Mike Perham
fd46c5471a
Client workers can now define associated queue
...
Configure client middleware chain by default
Middleware entries should be unique
Change client#push to return boolean based on pushed or not.
2012-02-10 20:20:01 -08:00
Ryan LeCompte
3fdb26b4db
minor cleanup of RedisConnection
2012-02-09 22:00:40 -08:00
Mike Perham
a1f78816a7
Implement generic Ruby support via simple require flag
...
Various cleanups
It's "assert_equal(expected, actual)"
2012-02-09 20:32:59 -08:00
Max Spransy
8caa3ee950
add resque web compatability middleware
2012-02-09 12:39:45 -06:00
Max Spransy
78aad94817
Pass queue to middleware when called
2012-02-09 11:25:04 -06:00
Max Spransy
c34ec108a4
Move redis connection logic into class. Add support for namespaces via redis-namespace gem
2012-02-09 10:26:43 -06:00
Ryan LeCompte
c3609d6d48
refactor middleware into client/server layers
2012-02-08 17:04:02 -08:00
Ryan LeCompte
a093e29a9a
use md5 hash, not base64
2012-02-08 08:11:20 -08:00
Ryan LeCompte
1a028c4a2f
introduce middleware for cleanup of encoded payloads
2012-02-07 17:18:28 -08:00
Ryan LeCompte
62045af3d5
add unique payloads support, addresses issue #4
2012-02-07 03:29:09 -08:00
Mike Perham
29a89d7a25
Last minute fixes
2012-02-05 13:22:57 -08:00
Mike Perham
023099dde6
Support autoconfig of Redis in Heroku
2012-02-05 12:59:24 -08:00
Mike Perham
e8b8e53175
Remove daemonization code, let god/monit handle it.
...
Use a 'default' queue for simplicity.
2012-01-24 14:53:36 -08:00
Mike Perham
e7ae72d3d3
More client testing
2012-01-23 12:56:49 -08:00
Mike Perham
3b8b655807
worker mgmt and msg dispatch
2012-01-22 11:32:38 -08:00
Mike Perham
14bd63705a
Documentation, start client work
2012-01-21 16:42:21 -08:00