Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Better error message if s3 deletion takes longer than 30s. #304

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

Gerrit91
Copy link
Contributor

Closes #279.

@Gerrit91 Gerrit91 changed the title Do not return error if s3 deletion takes longer than 30s. Better error message if s3 deletion takes longer than 30s. May 31, 2024
@@ -247,6 +249,9 @@ func (c *config) s3Delete() error {

response, err := c.cloud.S3.Deletes3(request, nil)
if err != nil {
if errors.Is(err, context.DeadlineExceeded) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Another approach would be to simply put this into background and tell the user that the deletion will take a while to complete

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So you want to keep the server connection open? Not sure if there are other timeouts involved which will cancel the request prematurely. 🤔

Copy link
Collaborator

Choose a reason for hiding this comment

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

No, this is obviously not possible with a cli :-)

@majst01 majst01 merged commit 6ffb1cd into master Jun 3, 2024
5 checks passed
@majst01 majst01 deleted the s3-deletion-message branch June 3, 2024 07:21
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

timeout on s3 delete
2 participants