Add rescue for ActiveRecord::SerializationFailure#63
Add rescue for ActiveRecord::SerializationFailure#63kevin-pattern wants to merge 2 commits intomasterfrom
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds automatic retry logic to handle database serialization failures in the execute_query method. When a SerializationFailure exception occurs during query execution, the operation is automatically retried after logging a warning message.
- Wraps the entire query execution logic in a begin-rescue-retry block to handle
ActiveRecord::SerializationFailureexceptions - Adds warning logging when serialization failures occur
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@kevin-pattern I've opened a new pull request, #64, to work on those changes. Once the pull request is ready, I'll request review from you. |
|
@kevin-pattern I've opened a new pull request, #65, to work on those changes. Once the pull request is ready, I'll request review from you. |
|
Thanks for the review, @mayank0109! How can we test this before merging? I think we have to publish the gem and set the updated version in AdCzar, for example, correct? |
satishaher
left a comment
There was a problem hiding this comment.
We need to take a tag after merging this and use that in adczar.
Context: https://patterninc.slack.com/archives/C09QKPMU3K6
Fixes:
DD Link: https://app.datadoghq.com/apm/trace/13276438074009828619?graphType=span_list&shouldShowLegend=true&spanID=1605746623249566574&timeHint=1762189290547.8765&traceQuery=