Explorar o código

Stresstests: Changes retry policy

Ask Solem %!s(int64=11) %!d(string=hai) anos
pai
achega
61fd54f447
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      funtests/stress/stress/templates.py

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

@@ -57,6 +57,11 @@ class default(object):
     BROKER_URL = os.environ.get('CSTRESS_BROKER', 'amqp://')
     CELERY_RESULT_BACKEND = os.environ.get('CSTRESS_BACKEND', 'rpc://')
     CELERYD_PREFETCH_MULTIPLIER = int(os.environ.get('CSTRESS_PREFETCH', 1))
+    CELERY_TASK_PUBLISH_RETRY_POLICY = {
+        'max_retries': 100,
+        'interval_max': 2,
+        'interval_step': 0.1,
+    }
 
 
 @template()