-
Notifications
You must be signed in to change notification settings - Fork 78
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
Adding retries to new database task sessions #5448
Adding retries to new database task sessions #5448
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
fides
|
Project |
fides
|
Branch Review |
refs/pull/5448/merge
|
Run status |
|
Run duration | 00m 37s |
Commit |
|
Committer | Adrian Galvan |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
0
|
|
0
|
|
4
|
Upgrade your plan to view test results. | |
View all changes introduced in this branch ↗︎ |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5448 +/- ##
==========================================
+ Coverage 77.00% 85.47% +8.46%
==========================================
Files 384 384
Lines 24116 24122 +6
Branches 2624 2624
==========================================
+ Hits 18571 20618 +2047
+ Misses 4971 2950 -2021
+ Partials 574 554 -20 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's try it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work on this @galvana ! I'm excited to have this in prod, as it adds extra polish and resilience to our product 🌟
Just a couple notes / asks, mainly for ease of understanding for future devs.
fides
|
Project |
fides
|
Branch Review |
main
|
Run status |
|
Run duration | 00m 39s |
Commit |
|
Committer | Adrian Galvan |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
0
|
|
0
|
|
4
|
Upgrade your plan to view test results. | |
View all changes introduced in this branch ↗︎ |
Closes LA-89
Description Of Changes
This change is intended to resolve an intermittent error we are seeing in production
We haven't been able to reproduce it locally but given the intermittent, and short-lived nature of the issue, we believe a retry should account for these disconnections. We also disabled connection pooling for task workers since we believe this is causing issues https://docs.sqlalchemy.org/en/14/core/pooling.html#using-connection-pools-with-multiprocessing-or-os-fork
Code Changes
DatabaseTask.get_new_session()
Steps to Confirm
Pre-Merge Checklist
CHANGELOG.md