Skip to content

Commit

Permalink
Merge pull request #563 from jwon/master
Browse files Browse the repository at this point in the history
Increase retries for creating incidents
  • Loading branch information
diegocepedaw authored Feb 11, 2020
2 parents 3afbe64 + cccbc1d commit 2ac415f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/iris/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1681,8 +1681,9 @@ def on_post(self, req, resp):
raise HTTPBadRequest('No plan template actions exist for this app')

# To try to avoid deadlocks, split the inserts into their own session
# FIXME: Actually resolve deadlock issue by splitting the reads and the writes.
retries = 0
max_retries = 5
max_retries = 10
while True:
with db.guarded_session() as session:
retries += 1
Expand Down

0 comments on commit 2ac415f

Please sign in to comment.