From 92147ab230052a7b15af9239a390bdf51cbe63ba Mon Sep 17 00:00:00 2001 From: Jordi Mas Date: Wed, 29 May 2024 14:21:44 +0200 Subject: [PATCH] Use multiprocessing instead of threading since we use multiple processess --- transcribe-service/usage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transcribe-service/usage.py b/transcribe-service/usage.py index 18fabe0..7481967 100755 --- a/transcribe-service/usage.py +++ b/transcribe-service/usage.py @@ -22,9 +22,9 @@ import datetime from shutil import copyfile import logging -import threading +import multiprocessing -lock = threading.Lock() +lock = multiprocessing.Lock() """ This class keeps a log of the usage of a service