瀏覽代碼

Added a small cache template for stress test so I don't piss of the OOM killer :)

Ionel Cristian Mărieș 11 年之前
父節點
當前提交
9286aa9043
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      funtests/stress/stress/templates.py

+ 4 - 0
funtests/stress/stress/templates.py

@@ -102,3 +102,7 @@ class confirms(default):
 class events(default):
     CELERY_SEND_EVENTS = True
     CELERY_SEND_TASK_SENT_EVENT = True
+
+@template()
+class smallcache(default):
+    CELERY_MAX_CACHED_RESULTS = 10