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

Adds retry when github id is already been taken #466

Merged
merged 2 commits into from
Aug 26, 2021

Conversation

enzofab91
Copy link
Collaborator

What does this PR do?

In this previous PR, talking with @santib we figured out that find_or_create_by function has a strange behaviour when the model has a uniqueness validation (more info). So that we decided to leave it as it is and retry the job in this case with a custom exception.

Resolves EM-239: ActiveRecord::RecordInvalid: Validation failed: Github has already been taken

@enzofab91 enzofab91 requested a review from a team as a code owner August 23, 2021 18:52
@enzofab91 enzofab91 requested review from santib and matteo95g and removed request for a team August 23, 2021 18:52
Copy link
Member

@santib santib left a comment

Choose a reason for hiding this comment

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

good job 💯

@enzofab91 enzofab91 merged commit 0281fe7 into develop Aug 26, 2021
@enzofab91 enzofab91 deleted the fix/request_handler_job_retry branch September 13, 2021 14:02
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.

None yet

3 participants