-
Notifications
You must be signed in to change notification settings - Fork 16
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
MattT/APPEALS-43725: Extract notify_appellant
Call from QuaterlyNotificationsJob
to Decrease Runtime
#21643
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
to adhere to the RDoc standard
ThorntonMatthew
commented
May 15, 2024
@@ -128,9 +128,6 @@ | |||
# One time Appeal States migration for Legacy & AMA Appeal Batch Sizes | |||
ENV["STATE_MIGRATION_JOB_BATCH_SIZE"] ||= "1000" | |||
|
|||
# Quarterly Notifications Batch Sizes | |||
ENV["QUARTERLY_NOTIFICATIONS_JOB_BATCH_SIZE"] ||= "1000" |
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.
This environmental variable is no longer required due to the refactoring the QuarterlyNotificationsJob has undergone.
cannot be located within the init job
ThorntonMatthew
changed the title
MattT/APPEALS-43725: MattT/APPEALS-43725: Extract
MattT/APPEALS-43725: Extract May 15, 2024
notify_appellant
Call from QuaterlyNotificationsJob
to Decrease Runtimenotify_appellant
Call from QuaterlyNotificationsJob
to Decrease Runtime
Code Climate has analyzed commit 9531b58 and detected 6 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
ThorntonMatthew
merged commit May 16, 2024
eb71686
into
feature/APPEALS-43597
15 of 16 checks passed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 APPEALS-43725
Description
These changes extract synchronous, often slow (due to the need for external service calls), operations from happening within the QuarterlyNotificationsJob and into its own NotificationInitializationJob. This is to allow the quarterly job to run MUCH faster.
Additionally, functionality was added to CaseflowJob to allow for batch enqueueing of messages/jobs.
Acceptance Criteria
NotificationInitializationJob
(you can name it something else if you'd like)appeal_status
is valid iftemplate_name
is "Quarterly Notification"AppellantNotification.notify_appellant
AppellantNotification.notify_appellant
inQuarterlyNotificationsJob
with a.peform_later
call on the new job class.QuarterlyNotificationsJob
's runtime duration in ProdTest/Production absolutely must not come anywhere close to exceeding five hours in length.Testing Plan
Backend
Integrations: Adding endpoints for external APIs
Best practices
Code Documentation Updates
Tests
Test Coverage
Did you include any test coverage for your code? Check below:
Code Climate
Your code does not add any new code climate offenses? If so why?
Monitoring, Logging, Auditing, Error, and Exception Handling Checklist
Monitoring
Logging
Auditing
Error Handling
Exception Handling