Skip to content

LG-8284: Make GetUspsProofingResultsJob terminate gracefully#7692

Closed
tomas-nava wants to merge 11 commits intomainfrom
tomas/lg-8284-make-usps-proofing-job-terminate-gracefully
Closed

LG-8284: Make GetUspsProofingResultsJob terminate gracefully#7692
tomas-nava wants to merge 11 commits intomainfrom
tomas/lg-8284-make-usps-proofing-job-terminate-gracefully

Conversation

@tomas-nava
Copy link
Contributor

@tomas-nava tomas-nava commented Jan 24, 2023

🎫 Ticket

LG-8284

🛠 Summary of changes

Logs progress when the GetUspsProofingResultsJob is terminated by a ConcurrencyExceededError.

Note: I refactored the job to make it easier to implement this change; that refactoring happens in the first three commits. Functionality changes are in the last four commits.

📜 Testing Plan

The Joy environment already has many enrollments in the 'cancelled' status. If those enrollments are changed to 'pending' status, the concurrency limit is set to 1, and the GetUspsProofingResultsJob chron schedule is set to 5 minutes we should see jobs getting terminated frequently.

Tomas Apodaca added 4 commits January 24, 2023 11:15
@tomas-nava tomas-nava requested a review from sheldon-b January 24, 2023 19:35
Copy link
Contributor

@sheldon-b sheldon-b left a comment

Choose a reason for hiding this comment

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

Looks good! Have you tested this in practice, in a lower environment? I want to know that it works as expected since when I wrote the ticket it was just based on reading documentation

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

@tomas-nava
Copy link
Contributor Author

Have you tested this in practice, in a lower environment? I want to know that it works as expected since when I wrote the ticket it was just based on reading documentation

Doing this now

@tomas-nava
Copy link
Contributor Author

I'm closing this pull request, as ConcurrencyExceededError are no longer being raised. I moved the refactoring work I wanted to preserve to #7937

@tomas-nava tomas-nava closed this Mar 7, 2023
@tomas-nava tomas-nava deleted the tomas/lg-8284-make-usps-proofing-job-terminate-gracefully branch March 7, 2023 18:53
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.

3 participants