Selaa lähdekoodia

Stress: smallcache is now default

Ask Solem 11 vuotta sitten
vanhempi
commit
45da6b13e7
1 muutettua tiedostoa jossa 1 lisäystä ja 5 poistoa
  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_SERIALIZER = 'json'
     CELERY_RESULT_PERSISTENT = True
     CELERY_RESULT_PERSISTENT = True
     CELERY_TASK_RESULT_EXPIRES = 300
     CELERY_TASK_RESULT_EXPIRES = 300
+    CELERY_MAX_CACHED_RESULTS = 10
     CELERY_QUEUES = [
     CELERY_QUEUES = [
         Queue(CSTRESS_QUEUE,
         Queue(CSTRESS_QUEUE,
               exchange=Exchange(CSTRESS_QUEUE),
               exchange=Exchange(CSTRESS_QUEUE),
@@ -104,11 +105,6 @@ class events(default):
     CELERY_SEND_TASK_SENT_EVENT = True
     CELERY_SEND_TASK_SENT_EVENT = True
 
 
 
 
-@template()
-class smallcache(default):
-    CELERY_MAX_CACHED_RESULTS = 10
-
-
 @template()
 @template()
 class execv(default):
 class execv(default):
     CELERYD_FORCE_EXECV = True
     CELERYD_FORCE_EXECV = True