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

feat(medusa): Event bus db failure handling #4963

Merged
merged 3 commits into from
Sep 6, 2023

Conversation

adrien2p
Copy link
Member

@adrien2p adrien2p commented Sep 6, 2023

What
Prevent the enqueuer to fail at all if there is a db error, also warn the user about any failure so that the user can be aware of it and act accordingly.

Maybe a more appropriate way of doing it (but can be decided at a later point) would be to have a more global connection management which can notify if there is a connection lost and the service could listen to it to handle it accordingly. Also, any other critical places that rely on the db could listen to it

@changeset-bot
Copy link

changeset-bot bot commented Sep 6, 2023

🦋 Changeset detected

Latest commit: fadefa6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@medusajs/medusa Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Sep 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
api-reference ⬜️ Ignored (Inspect) Visit Preview Sep 6, 2023 10:46am
medusa-docs ⬜️ Ignored (Inspect) Visit Preview Sep 6, 2023 10:46am

@adrien2p adrien2p marked this pull request as ready for review September 6, 2023 10:44
@adrien2p adrien2p requested a review from a team as a code owner September 6, 2023 10:44
@olivermrbl olivermrbl merged commit b717767 into develop Sep 6, 2023
@olivermrbl olivermrbl deleted the feat/event-bus-db-connection-failure branch September 6, 2023 15:07
@github-actions github-actions bot mentioned this pull request Sep 6, 2023
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.

3 participants