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(backend): Make sure all the obtained DB connections are able to query #8894

Merged
merged 3 commits into from
Dec 6, 2024

Conversation

majdyz
Copy link
Contributor

@majdyz majdyz commented Dec 6, 2024

Changes πŸ—οΈ

We've seen some symptoms where during the initial startup of the application the obtained db connection produces an error when the network is unreachable. This code made sure that the obtained connection could run the query and retry it on the spot if it was unable to do so.

Checklist πŸ“‹

For code changes:

  • I have clearly listed my changes in the PR description
  • I have made a test plan
  • I have tested my changes according to the test plan:
    • ...
Example test plan
  • Create from scratch and execute an agent with at least 3 blocks
  • Import an agent from file upload, and confirm it executes correctly
  • Upload agent to marketplace
  • Import an agent from marketplace and confirm it executes correctly
  • Edit an agent from monitor, and confirm it executes correctly

For configuration changes:

  • .env.example is updated or already compatible with my changes
  • docker-compose.yml is updated or already compatible with my changes
  • I have included a list of my configuration changes in the PR description (under Changes)
Examples of configuration changes
  • Changing ports
  • Adding new services that need to communicate with each other
  • Secrets or environment variable changes
  • New or infrastructure changes such as databases

@majdyz majdyz requested a review from aarushik93 December 6, 2024 04:02
@majdyz majdyz requested a review from a team as a code owner December 6, 2024 04:02
@majdyz majdyz requested review from Swiftyos and removed request for a team December 6, 2024 04:02
@github-actions github-actions bot added platform/backend AutoGPT Platform - Back end and removed Review effort [1-5]: 2 labels Dec 6, 2024
Copy link

qodo-merge-pro bot commented Dec 6, 2024

PR Reviewer Guide πŸ”

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 2 πŸ”΅πŸ”΅βšͺβšͺβšͺ
πŸ§ͺΒ No relevant tests
πŸ”’Β No security concerns identified
⚑ Recommended focus areas for review

Error Handling
The error handling could be more specific - currently both connection failures and query failures raise the same generic error message. Consider providing more context in the error message to distinguish between connection vs query failures.

Copy link

netlify bot commented Dec 6, 2024

βœ… Deploy Preview for auto-gpt-docs-dev canceled.

Name Link
πŸ”¨ Latest commit e45065b
πŸ” Latest deploy log https://app.netlify.com/sites/auto-gpt-docs-dev/deploys/67527f3bb0b0ad0008f5796d

@github-actions github-actions bot added the size/s label Dec 6, 2024
Copy link

netlify bot commented Dec 6, 2024

βœ… Deploy Preview for auto-gpt-docs canceled.

Name Link
πŸ”¨ Latest commit e45065b
πŸ” Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/67527f3bc41cc500085f3d61

@majdyz majdyz enabled auto-merge December 6, 2024 04:21
@majdyz majdyz added this pull request to the merge queue Dec 6, 2024
Merged via the queue into dev with commit e290413 Dec 6, 2024
19 checks passed
@majdyz majdyz deleted the zamilmajdy/add-select-after-connection branch December 6, 2024 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform/backend AutoGPT Platform - Back end size/s
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants