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

Move AgentWorker construction and registration out of AgentPool #956

Merged
merged 3 commits into from
Mar 25, 2019

Conversation

lox
Copy link
Contributor

@lox lox commented Mar 23, 2019

This is another take on #954 that reduces the diff somewhat.

The aim here is to decouple the AgentPool from the creation of AgentWorkers and registration. This allows better composition and pushes the construction of dependencies up to the caller, which is the cli command level.

The only practical difference in how things work here is that there is a single signal handler for the whole AgentPool vs one for each AgentWorker. This shouldn't have anything other than aesthetic difference.

Registration and fetching of tags are now different things too, and the results are passed into things that need them.

@lox lox requested review from keithpitt and a team March 23, 2019 06:32
@lox lox merged commit 416328e into master Mar 25, 2019
@lox lox deleted the refactor-agent-pool branch March 25, 2019 01:19
@lox
Copy link
Contributor Author

lox commented Mar 25, 2019

💪🏻

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