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

Allow user to set number of workers #139

Open
mbartn opened this issue Feb 11, 2021 · 0 comments
Open

Allow user to set number of workers #139

mbartn opened this issue Feb 11, 2021 · 0 comments

Comments

@mbartn
Copy link
Contributor

mbartn commented Feb 11, 2021

Updater class allows to set workers variable - it corresponds to Amount of threads in the thread pool for functions decorated with @run_async.
4 workers may be not optimal for a user if he does have more threads on his CPU. We could allow him to set optional variable workers from command line.
Please note that this can be useful only if someone sets up one bot instance for multiple people so this issue may not be urgent. Feel free to close if you find it not necessary

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