Merge pull request #1673 from kumar303/chord-unlock

Tame chord_unlock retries, mitigate inifinite loop
This commit is contained in:
Kumar McMillan 2016-02-11 12:17:19 -06:00
Родитель 91fab80693 4a6bb38396
Коммит f344a2bb2a
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -1177,6 +1177,16 @@ CELERY_ROUTES = {
}
# TODO: once we have a fix for chord_unlock errors (redis result
# backend?) then we can remove the retries maybe.
# See https://github.com/mozilla/addons-server/issues/1653
CELERY_ANNOTATIONS = {
'celery.chord_unlock': {
'max_retries': 10,
}
}
# This is just a place to store these values, you apply them in your
# task decorator, for example:
# @task(time_limit=CELERY_TIME_LIMITS['lib...']['hard'])