Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix retry insert data issue #2668

Merged
merged 6 commits into from
Jan 23, 2024
Merged

Fix retry insert data issue #2668

merged 6 commits into from
Jan 23, 2024

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.

augur/application/db/session.py Outdated Show resolved Hide resolved
augur/application/db/session.py Outdated Show resolved Hide resolved
augur/application/db/session.py Outdated Show resolved Hide resolved
augur/application/db/session.py Outdated Show resolved Hide resolved
augur/application/db/session.py Outdated Show resolved Hide resolved
@sgoggins sgoggins merged commit ce50ea3 into dev Jan 23, 2024
7 of 8 checks passed
@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