Bug 1124269 - Retry parse-log tasks sooner

Currently parse-log tasks retry after 10 minutes. With this change, the
first retry is now after 1 minute, then the time for each subsequent
retry lengthens by a further minute each time.
This commit is contained in:
Ed Morley 2015-01-21 19:01:15 +00:00
Родитель 856cbf3b9e
Коммит a09c4053cb
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -89,7 +89,8 @@ def parse_log(project, job_log_url, job_guid, check_errors=False):
'parse_timestamp': current_timestamp
}
)
# for every retry, set the countdown to 10 minutes
# Initially retry after 1 minute, then for each subsequent retry
# lengthen the retry time by another minute.
parse_log.retry(exc=e, countdown=(1 + parse_log.request.retries) * 60)
# .retry() raises a RetryTaskError exception,
# so nothing below this line will be executed.
parse_log.retry(exc=e, countdown=10*60)