Преглед на файлове

Stress: smallcache is now default

Ask Solem преди 11 години
родител
ревизия
45da6b13e7
променени са 1 файла, в които са добавени 1 реда и са изтрити 5 реда
  1. 1 5
      funtests/stress/stress/templates.py

+ 1 - 5
funtests/stress/stress/templates.py

@@ -51,6 +51,7 @@ class default(object):
     CELERY_RESULT_SERIALIZER = 'json'
     CELERY_RESULT_PERSISTENT = True
     CELERY_TASK_RESULT_EXPIRES = 300
+    CELERY_MAX_CACHED_RESULTS = 10
     CELERY_QUEUES = [
         Queue(CSTRESS_QUEUE,
               exchange=Exchange(CSTRESS_QUEUE),
@@ -104,11 +105,6 @@ class events(default):
     CELERY_SEND_TASK_SENT_EVENT = True
 
 
-@template()
-class smallcache(default):
-    CELERY_MAX_CACHED_RESULTS = 10
-
-
 @template()
 class execv(default):
     CELERYD_FORCE_EXECV = True