get-bz-attachments: set speaking thread names for job queue
Change-Id: I38d637b8dd0f19330329565bf2e63c3c8463536c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161004 Tested-by: Thorsten Behrens <thorsten.behrens@allotropia.de> Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
This commit is contained in:
@@ -422,6 +422,14 @@ class manage_threads(threading.Thread):
|
||||
# Use job parameters to call our query
|
||||
# Then let the queue know we are done with this job
|
||||
(uri, mimetype, prefix, extension) = jobs.get(True, 6)
|
||||
try:
|
||||
# set thread name for easier debugging, if process
|
||||
# ctl package is available
|
||||
import prctl
|
||||
prctl.set_name(prefix[:3] + ': ' + mimetype[-10:])
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
try:
|
||||
get_through_rss_query(uri, mimetype, prefix, extension)
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user