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

Remove unnecesary retrying on updating a package #16957

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

eduardoj
Copy link
Member

@eduardoj eduardoj commented Oct 15, 2024

Follow up to #16956.

We want to deploy these pull requests separately.

This PR is the third of a group of pull requests:

  1. Remove unnecesary retrying on creating events #16954
  2. Remove unnecesary retrying on updates of packages' issues  #16956
  3. Remove unnecesary retrying on updating a package

If saving an event results in an ActiveRecord::StatementInvalid
exception, just retrying to save that event 10 times doesn't make a
difference.

Also, don't rescue from StandardError exceptions to handle them exactly
as we do in the rest of the application.
If updating packages' issues results in an error, just retrying 10 times
to update them doesn't make a difference.

Also, prevent from masking generic Mysql2::Error exceptions. We would
like to handle those exceptions like any other exception in the
application. Correct handling of concurrent updates of packages and
packages' issues is guaranteed using Active Jobs.
If updating a package results in an error, just retrying 10 times to
update it doesn't make a difference.

Correct handling of concurrent updates of packages is guaranteed using
Active Jobs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frontend Things related to the OBS RoR app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant