mirror of https://github.com/rq/rq.git
Better process name for workers
This commit is contained in:
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…
Reference in New Issue