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

35 commits

Author SHA1 Message Date
Karl Freeman
d9fd031b47 Allow Sidekiq::Client to push / push_bulk job with class as a String 2012-11-15 20:58:58 +00:00
jc00ke
1ad536b090 Update test descriptions 2012-11-08 11:34:56 -08:00
Pablo Ifran
44f02fbcfe fix retry option on normalize 2012-11-08 18:28:50 -02:00
Jonathan Rudenberg
895a436b5a Fix retry default 2012-09-17 23:08:45 -04:00
Mike Perham
c4fc7fd806 push_batch => push_bulk 2012-09-13 17:38:56 -07:00
Mike Perham
c78d4e7a0b Add test for client middleware short circuit 2012-09-12 21:22:13 -07:00
Mike Perham
92bec164be Implement Client.push_batch 2012-09-11 20:53:22 -07:00
Mike Perham
b3757fdfa6 Rejigger inline testing to handle enqueue/enqueue_to 2012-09-07 08:59:04 -07:00
Niels Kristian
6e2e34f013 Added tests for perform_in_queue method on worker and enqueue_at on client 2012-08-21 11:02:07 +02:00
Mike Perham
ae2837bd86 Add unique job ID for every pushed job 2012-08-11 11:47:25 -07:00
Mike Perham
d47873a4d9 remove old middleware testing 2012-07-20 20:14:32 -07:00
Mike Perham
0addaba4a6 Enable proper inheritance of sidekiq options in worker subclasses [#221] 2012-06-16 20:58:07 -07:00
Mike Perham
2ec203365e Clean up timeout middleware, add client-side option [#161] 2012-04-26 08:40:07 -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
ee42be39e0 API cleanup, remove deprecations 2012-03-28 19:16:54 -07:00
Mike Perham
db4198142a Fix race condition in unique job lookup, #87 2012-03-22 20:43:14 -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
2206ce7654 RedisConnection was only ever creating one Redis connection, even when pooled. Oops. 2012-03-13 21:19:46 -07:00
Mike Perham
d2263cbfe1 Add basic web testing, promote 'queues' set to core. 2012-03-10 13:07:19 -08:00
Mike Perham
0973245909 Redis connection API change
old: Sidekiq.redis = Sidekiq::RedisConnection.create(:namespace => 'foo')
new: Sidekiq.redis = { :namespace => 'foo' }
2012-03-01 13:41:12 -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
f9af66edd7 Rework redis connections so that the manager and
the client use separate pools.

This is so the Rails app Sidekiq::Client and 
Sidekiq::Manager can use different configurations.

Also, fix issue where workers were not unregistered
in Redis upon shutdown.
2012-02-11 13:14:03 -08:00
Mike Perham
23651d5196 First pass at Resque-compatible processing stats 2012-02-10 23:16:12 -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
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
Ryan LeCompte
c3609d6d48 refactor middleware into client/server layers 2012-02-08 17:04:02 -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
83db466fe9 Fix perform_async, thanks @ryanlecompte 2012-01-25 13:53:00 -08:00
Mike Perham
e7ae72d3d3 More client testing 2012-01-23 12:56:49 -08:00
Mike Perham
14bd63705a Documentation, start client work 2012-01-21 16:42:21 -08:00