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

Fixed processors to use appropriate config #55

Closed
wants to merge 3 commits into from

Conversation

mhuggins
Copy link
Contributor

@mhuggins mhuggins commented Apr 13, 2016

This is a WIP, but hoping to get some eyes on it as a fix for #54.

We're currently using the subscriber config for all asynchronous processing, even in spots where we should be using the publisher config. This changes the behavior and implementation of processors to make them instantiable classes that accept the config they should be working with. I also introduced a new Pool module that is responsible for tracking all async processors and flushing properly. (Need to add tests for this still.)

@mhuggins mhuggins force-pushed the bug/processor-config branch from 723f7ce to 882f28e Compare April 20, 2016 19:27
@mhuggins mhuggins force-pushed the bug/processor-config branch from c879686 to f79430e Compare April 20, 2016 20:13
@mhuggins
Copy link
Contributor Author

@brandonc Just tested this and it's working. Interested in your feedback on the approach. Basically I changed all processors from modules w/ module methods to instantiable classes that accept the config object. The config object is used to determine the appropriate logger, async exit proc, etc.

@mhuggins mhuggins force-pushed the bug/processor-config branch from f79430e to f225b41 Compare April 20, 2016 20:43
@mhuggins
Copy link
Contributor Author

Closing since this is stale. Open to this being taken over by anyone who needs it.

@mhuggins mhuggins closed this Sep 24, 2018
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.

1 participant