diff rhodecode/lib/celerylib/__init__.py @ 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 9d4b80743a2a
children a5f0bc867edc d77d9ff149b1
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: