From 7436d6026b93634055d3bb9a6a31d1bdab68c5e1 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Apr 21 2022 04:35:18 +0000 Subject: dist-git: more obvious "locking" importer proctitle Merges: #2176 --- diff --git a/dist-git/copr_dist_git/helpers.py b/dist-git/copr_dist_git/helpers.py index 3a1ae77..2d06701 100644 --- a/dist-git/copr_dist_git/helpers.py +++ b/dist-git/copr_dist_git/helpers.py @@ -25,9 +25,10 @@ def lock(name): of the same package cannot be imported in paralel. """ title = getproctitle() - setproctitle("{0} [locked]".format(title)) + setproctitle("{0} [locking]".format(title)) with lockutils.lock(name=name, external=True, lock_path=LOCK_PATH, fair=True, delay=0): + setproctitle("{0} [locked]".format(title)) yield setproctitle(title)