Better process name for workers

main
Selwin Ong 2 years ago
parent 4f3670b024
commit 7c1f96fafa

@ -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."""

Loading…
Cancel
Save