changeset 3055:301268606429 beta

fixes #666 move lockkey path location to cache_dir to ensure this path is always writable for rhodecode server
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 01 Dec 2012 15:17:36 +0100
parents 400ca827f2c5
children 6104dfd35b16
files rhodecode/lib/celerylib/__init__.py rhodecode/lib/celerylib/tasks.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/lib/celerylib/__init__.py	Sat Dec 01 00:20:39 2012 +0100
+++ b/rhodecode/lib/celerylib/__init__.py	Sat Dec 01 15:17:36 2012 +0100
@@ -93,7 +93,7 @@
 def locked_task(func):
     def __wrapper(func, *fargs, **fkwargs):
         lockkey = __get_lockkey(func, *fargs, **fkwargs)
-        lockkey_path = config['here']
+        lockkey_path = config['app_conf']['cache_dir']
 
         log.info('running task with lockkey %s' % lockkey)
         try:
--- a/rhodecode/lib/celerylib/tasks.py	Sat Dec 01 00:20:39 2012 +0100
+++ b/rhodecode/lib/celerylib/tasks.py	Sat Dec 01 15:17:36 2012 +0100
@@ -92,7 +92,7 @@
     DBS = get_session()
     lockkey = __get_lockkey('get_commits_stats', repo_name, ts_min_y,
                             ts_max_y)
-    lockkey_path = config['here']
+    lockkey_path = config['app_conf']['cache_dir']
 
     log.info('running task with lockkey %s' % lockkey)