Better process name for workers

This commit is contained in:
Selwin Ong 2023-04-07 09:21:37 +07:00
parent 4f3670b024
commit 7c1f96fafa
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ class Worker:
This can be used to make `ps -ef` output more readable.
"""
setprocname('rq: {0}'.format(message))
setprocname(f'rq:worker:{self.name}: {message}')
def register_birth(self):
"""Registers its own birth."""