Skip to content

Fix retry insert data issue#2668

Merged
sgoggins merged 6 commits intodevfrom
fix-insert-data-issue
Jan 23, 2024
Merged

Fix retry insert data issue#2668
sgoggins merged 6 commits intodevfrom
fix-insert-data-issue

Conversation

@ABrain7710
Copy link
Contributor

@ABrain7710 ABrain7710 commented Jan 23, 2024

Description

  • Fix issue where we fail to retry inserting data in smaller chunks if an error occurs during insertion. This is why we have been getting errors like this when we see database errors like this one
  • I also added a 3 second sleep just in case the error is temporary
    key = "_".join([str(x[unique]) for unique in uniques])
KeyError: 'pull_request_id'```

**Signed commits**
- [X] Yes, I signed my commits.

Signed-off-by: Andrew Brain <andrewbrain2019@gmail.com>
Signed-off-by: Andrew Brain <andrewbrain2019@gmail.com>
Signed-off-by: Andrew Brain <andrewbrain2019@gmail.com>
Signed-off-by: Andrew Brain <andrewbrain2019@gmail.com>
Signed-off-by: Andrew Brain <andrewbrain2019@gmail.com>
@sgoggins sgoggins merged commit ce50ea3 into dev Jan 23, 2024
@ABrain7710 ABrain7710 deleted the fix-insert-data-issue branch February 20, 2024 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants