Merge "Retry on deadlock in purge_deleted"

This commit is contained in:
Zuul 2018-05-14 05:50:32 +00:00 committed by Gerrit Code Review
commit f12426f777
1 changed files with 2 additions and 0 deletions

View File

@ -1320,6 +1320,8 @@ def purge_deleted(age, granularity='days', project_id=None, batch_size=20):
@oslo_db_api.wrap_db_retry(max_retries=3, retry_on_deadlock=True,
retry_interval=0.5, inc_retry_interval=True)
def _purge_stacks(stack_infos, engine, meta):
"""Purge some stacks and their releated events, raw_templates, etc.