-
Notifications
You must be signed in to change notification settings - Fork 19
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
Allow UpdateCachedAppealsAttributesJob to complete and send warnings #15482
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yoomlam
added
Product: caseflow-queue
Integration: BGS
BGS integration
Team: Echo 🐬
Source: Sentry Alert
created because of a Sentry alert
Priority: Medium
Blocking issue w/workaround, or "second in" priority for new work.
labels
Oct 22, 2020
Code Climate has analyzed commit a394649 and detected 0 issues on this pull request. View more on Code Climate. |
yoomlam
commented
Oct 22, 2020
lomky
reviewed
Oct 23, 2020
lomky
approved these changes
Oct 26, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
yoomlam
added
the
Ready-to-Merge
This PR is ready to be merged and will be picked up by va-bot to automatically merge to master
label
Oct 26, 2020
1 task
1 task
va-bot
pushed a commit
that referenced
this pull request
Oct 28, 2020
Resolves #15426 ### Description - Moved `FetchHearingLocationsForVeteransJob` logic to `GeomatchService` - Moved `UpdateCachedAppealsAttributesJob` logic to `CachedAppealService` - Refactored some existing logic to get rid of some CodeClimate warnings. The remaining ones I think we can ignore - Add `Hearings::GeomatchAndCacheAppealJob`, and start it when completing `ChangeHearingRequestTypeTask` - Update and add tests - Resolves merge conflicts from #15482 and #15478 ### Acceptance Criteria - [x] When a user completes the "Convert hearing to virtual" action on a Travel Board hearing, it immediately shows up in the geo-matched RO queue ### Testing Plan 1. Login as BVASYELLOW 2. Go to http://localhost:3000/queue/appeals/1986897 3. Work the change appeal type task 4. Go to the schedule veteran page for St. Petersburg, and ensure the case shows up
1 task
1 task
va-bot
pushed a commit
that referenced
this pull request
Oct 30, 2020
…nue processing (#15537) UpdateCachedAppealsAttributesJob [failed](https://dsva.slack.com/archives/CN3FQR4A1/p1604044974000100) [due to BGS `Savon::HTTPError: HTTP error (408): stream timeout`](https://sentry.prod.appeals.va.gov/department-of-veterans-affairs/caseflow/issues/12047/events/903946/?environment=production) ### Description Rescue from the Savon::HTTPError and log it as a warning so that the job can complete. ### Acceptance Criteria - [ ] Code compiles correctly ### Testing Plan Can do something like the test plan described in #15482, but it's hard to replicate the error other than what's done in the rspec test.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Integration: BGS
BGS integration
Priority: Medium
Blocking issue w/workaround, or "second in" priority for new work.
Product: caseflow-queue
Ready-to-Merge
This PR is ready to be merged and will be picked up by va-bot to automatically merge to master
Source: Sentry Alert
created because of a Sentry alert
Team: Echo 🐬
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #15416
Description
If a BGS connection error occurs when getting the POA representative, log a warning and allow UpdateCachedAppealsAttributesJob to complete without failure and log the warnings to Slack.
The UpdateCachedAppealsAttributesJob runs many times per day. The warning logs should provide more info to determine if we want to automatically retry for certain situations.
There may be other errors caused by BGS, but we'll just rescue from
Errno::ECONNRESET
for now.Acceptance Criteria
SSL_connect
errorTesting Plan
It's hard to test unless we know which appeal causes the BGS connection error.
In prod, monkey-patch class with code changes, skipping
cache_ama_appeals
and limiting to first few legacy appeals:You may see a bunch of
ROLLBACK
s due to BGS like the following, but the job should keep running.and