From 71ca370bc4ced4b894c3bb2d709d83bf03292f50 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Apr 19 2022 14:49:22 +0000 Subject: dist-git: more obvious "locking" importer proctitle --- 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)