Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove worker client reference. #75

Merged
merged 1 commit into from Jan 30, 2013
Merged

Conversation

myronmarston
Copy link
Contributor

The Qless::Worker does not need a reference to a client. It restrict
flexibility by coupling it to one client like this. While it does not
normally make sense to do so, we have a case where would like a
single worker to pull jobs from queues on multiple qless servers,
which works just fine because the queue objects themselves know
what client to talk to.

/cc @proby @dlecocq

The Qless::Worker does not need a reference to a client. It restrict
flexibility by coupling it to one client like this.  While it does not
normally make sense to do so, we have a case where would like a
single worker to pull jobs from queues on multiple qless servers,
which works just fine because the queue objects themselves know
what client to talk to.
@proby
Copy link
Contributor

proby commented Jan 30, 2013

It's worth noting this is a breaking change if anyone is calling the initialize method in Qless::Worker. I feel that's ok and not people are not likely using that method directly.

Looks good.

myronmarston added a commit that referenced this pull request Jan 30, 2013
@myronmarston myronmarston merged commit 7a2956e into master Jan 30, 2013
@myronmarston myronmarston deleted the remove_worker_client branch January 30, 2013 02:52
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.

None yet

2 participants