From 7c1f96fafaac6dc23bfe7fbe747c792eb3c199c3 Mon Sep 17 00:00:00 2001 From: Selwin Ong Date: Fri, 7 Apr 2023 09:21:37 +0700 Subject: [PATCH] Better process name for workers --- rq/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/worker.py b/rq/worker.py index 80c0384..34c6c95 100644 --- a/rq/worker.py +++ b/rq/worker.py @@ -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."""