DataFed
DataFed copied to clipboard
Added DB connection back off
Summary by Sourcery
Add a back-off strategy for database connection retries in the TaskWorker to improve resilience against connection failures.
New Features:
- Introduce a back-off mechanism for database connection attempts in the TaskWorker to handle connection failures more gracefully.
Reviewer's Guide by Sourcery
This pull request implements a database connection back-off mechanism in the TaskWorker class to handle SDMS DB interface failures more gracefully. The changes introduce an exponential back-off strategy when encountering specific database connection errors.
File-Level Changes
| Change | Details | Files |
|---|---|---|
| Implemented database connection back-off mechanism |
|
core/server/TaskWorker.cpp |
Tips
- Trigger a new Sourcery review by commenting
@sourcery-ai reviewon the pull request. - Continue your discussion with Sourcery by replying directly to review comments.
- You can change your review settings at any time by accessing your dashboard:
- Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
- Change the review language;
- You can always contact us if you have any questions or feedback.
@par-hermes format