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

Simplify worker logic #29

Open
imranariffin opened this issue Aug 29, 2022 · 0 comments
Open

Simplify worker logic #29

imranariffin opened this issue Aug 29, 2022 · 0 comments

Comments

@imranariffin
Copy link
Owner

Before #20 it didn't cross my mind to use multiprocessing.Pool to initialize child workers and send tasks to them. Using this would simplify the architecture described in #9. As part of this we should also consider refactoring the worker.py to make it more readable, extensible and configurable.

We should also simplify the subscription logic. I recently learned that we can replace the polling with aioredis.client.PubSub.subscribe (I couldn't the docs for it but it is there in the source code)

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

No branches or pull requests

1 participant