Skip to content

Refactor Sidekiq::Client to work as instances#1279

Merged
mperham merged 3 commits intomasterfrom
client_instances
Oct 26, 2013
Merged

Refactor Sidekiq::Client to work as instances#1279
mperham merged 3 commits intomasterfrom
client_instances

Conversation

@mperham
Copy link
Collaborator

@mperham mperham commented Oct 24, 2013

The Sidekiq::Client APIs are all class methods, since they meant to ape the Resque API. It would be nice for the Client API to be instance-based with the class methods using a default instance.

First suggested in #1275 by @pkieltyka

mperham added a commit that referenced this pull request Oct 26, 2013
Refactor Sidekiq::Client to work as instances
@mperham mperham merged commit 09e3325 into master Oct 26, 2013
@mperham mperham deleted the client_instances branch October 26, 2013 04:12
dleung pushed a commit to dleung/sidekiq that referenced this pull request Nov 4, 2013
@pkieltyka
Copy link

Thanks for this. Any chance each client can specify their own redis connection as well? .. ie. different queue services/servers in the same project..

@mperham
Copy link
Collaborator Author

mperham commented Nov 4, 2013

Not at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants