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

Delete object from S3 if database save fails #118

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

jschlyter
Copy link
Member

No description provided.

@jschlyter jschlyter self-assigned this Nov 12, 2024
@jschlyter jschlyter added the enhancement New feature or request label Nov 12, 2024
@jschlyter jschlyter marked this pull request as ready for review November 12, 2024 12:13
@jschlyter jschlyter requested a review from a team as a code owner November 12, 2024 12:13
@eest
Copy link
Member

eest commented Nov 12, 2024

Looks reasonable, 502 sounds a bit strange for storage errors (I guess the server might be considered a mongodb gateway at that point, but feels weird to me)

@jschlyter
Copy link
Member Author

Looks reasonable, 502 sounds a bit strange for storage errors (I guess the server might be considered a mongodb gateway at that point, but feels weird to me)

I've changed this to 500 in 9e6673a.

What if we fail to post to MQTT? How do we proceed? (ping @morkrost)

Copy link
Member

@eest eest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jschlyter jschlyter merged commit a02d310 into main Nov 13, 2024
4 checks passed
@jschlyter jschlyter deleted the delete_object_on_failure branch November 13, 2024 14:38
@morkrost
Copy link
Contributor

MQTT can fail in two ways, you fail to send it and I fail to pay attention when it is sent.

I check for the existence of files in S3 atm, so no need for MQTT right now, and once I start using my new job scheduler we can decide on the best strategy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants