Skip to content

Commit

Permalink
Add 5 second delay before we retry
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Brain <andrewbrain2019@gmail.com>
  • Loading branch information
ABrain7710 committed Jan 23, 2024
1 parent 9e7cc37 commit ef169be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions augur/application/db/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ def insert_data(self, data: Union[List[dict], dict], table, natural_keys: List[s
if(len(data) == 1):
raise e
else:
time.sleep(5)
first_half = data[:len(data)//2]
second_half = data[len(data)//2:]

Expand Down Expand Up @@ -234,6 +235,7 @@ def insert_data(self, data: Union[List[dict], dict], table, natural_keys: List[s
if(len(data) == 1):
raise e
else:
time.sp
first_half = data[:len(data)//2]
second_half = data[len(data)//2:]

Expand Down

0 comments on commit ef169be

Please sign in to comment.