-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
give threads a name prefix #1332
Comments
This looks like it should be doable, we'll look into it and get back to you. |
Ok, thanks for letting me know, I am looking forward to this improvement. |
@bmxp good find. Would you be comfortable to PR this yourself? |
I would love to but my expertise is not good enough to provide a PR and I am not very good with API creating thus I'd rather step aside and let someone else make a superior solution. |
This adds a prefix of `Bot:<id>:worker:` to the name of the worker threads. Fixes #1332
This adds a prefix of `Bot:<id>:worker:` to the name of the worker threads. Fixes #1332
Just an idea if python-telegram-bot is part of a bigger program:
It would be a nice thing to improve bug finding in bigger programms of which python-telegram-bot is a part of if one could name the thread. Instead of names like
I would rather like to see
Since any thread has an id anyway, this should not be too difficult.
So instead using uuid4 to name a worker, just give a custom param of
name_prefix='telegram'
andworker_name='worker'
Thanks in advance!
The text was updated successfully, but these errors were encountered: