Browse Source

Retry on deadlock in purge_deleted

Change-Id: I6dc7429b2564ab07dd66bf0cf0c8657ac1928508
Closes-Bug: #1721695
changes/31/565531/1
Zane Bitter 4 years ago
parent
commit
c06a0e469b
  1. 2
      heat/db/sqlalchemy/api.py

2
heat/db/sqlalchemy/api.py

@ -1318,6 +1318,8 @@ def purge_deleted(age, granularity='days', project_id=None, batch_size=20):
break
@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.

Loading…
Cancel
Save