Changeset - a69573cfcb00
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2012-01-20 07:14:32
marcin@python-works.com
cleanup task session only if celery is on
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/celerylib/__init__.py
Show inline comments
 
@@ -122,6 +122,7 @@ def dbsession(func):
 
            ret = func(*fargs, **fkwargs)
 
            return ret
 
        finally:
 
            if CELERY_ON:
 
            meta.Session.remove()
 

	
 
    return decorator(__wrapper, func)
0 comments (0 inline, 0 general)