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
Add "GC" for dispatcher workers #657
Conversation
@Hirrolot I've addressed your concern about "gc_worker_count_trigger" parameter. Now teloxide automatically sets this parameter to the maximum number of active workers at the same time. Pros: you don't need to choose this parameter, it's automatically set to a reasonable value. IMO this is good-enough as it is and we can improve this algorithm later. |
Add "GC" for dispatcher workers Former-commit-id: 19eca5d
We were leaking workers, this PR tries to fix this.
Solution that we ended up using:
Dispatcher
tracks the current & maximum number of active workersDispatcher
removes all inactive workers