Updated cahe keys
authorThierry Florac <thierry.florac@onf.fr>
Mon, 19 Jun 2017 15:43:27 +0200
changeset 91 3eed5cd878f5
parent 90 aa78027158d6
child 92 483b701c99db
Updated cahe keys
src/pyams_utils/lock.py
src/pyams_utils/progress.py
--- a/src/pyams_utils/lock.py	Mon Jun 19 15:38:44 2017 +0200
+++ b/src/pyams_utils/lock.py	Mon Jun 19 15:43:27 2017 +0200
@@ -54,7 +54,7 @@
     """
 
     def __init__(self, name, wait=True):
-        self.key = 'PyAMS_lock::{0}'.format(name)
+        self.key = 'PyAMS::lock::{0}'.format(name)
         self.wait = wait
         self.has_lock = False
 
--- a/src/pyams_utils/progress.py	Mon Jun 19 15:38:44 2017 +0200
+++ b/src/pyams_utils/progress.py	Mon Jun 19 15:43:27 2017 +0200
@@ -30,8 +30,8 @@
 
 
 PROGRESS_CACHE_NAME = 'PyAMS::progress'
-PROGRESS_LOCK_NAME = 'PyAMS::progress::lock'
 PROGRESS_TASKS_CACHE_KEY = 'PyAMS::progress::running_tasks'
+PROGRESS_LOCK_NAME = 'tasks_progress_lock'
 PROGRESS_TASK_KEY = 'PyAMS::progress::task::{0}'