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

Centralise Controller Queue and Worker processing #107

Merged
merged 1 commit into from
Feb 26, 2018

Conversation

markmandel
Copy link
Member

There were multiple places where queue and worker goroutines pattern for controllers (and related) were
repeated in almost exactly the same ways.

Since there are more controllers coming, it made sense to consolidate this logic into a centralised place that could be reused to make authoring them easier.

This may also allow us to centralise some health checking in #98

@markmandel markmandel added the kind/cleanup Refactoring code, fixing up documentation, etc label Feb 25, 2018
@markmandel markmandel added this to the 0.1 milestone Feb 25, 2018
There were multiple places where queue and worker
goroutines pattern for controllers (and related) were
repeated in almost exactly the same ways.

Since there are more controllers coming, it made sense
to consolidate this logic into a centralised place that
could be reused to make authoring them easier.

This may also allow us to centralise some health checking in #98
Copy link
Contributor

@enocom enocom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Nice extraction.

@markmandel markmandel merged commit 91089ce into master Feb 26, 2018
@markmandel markmandel deleted the refactor/worker-queue branch February 26, 2018 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup Refactoring code, fixing up documentation, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants