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

17505 Create a loop to attempt retrieval of payment records from the payment queue callback up to a maximum of five times #1417

Merged
merged 21 commits into from
Sep 25, 2023

Conversation

eve-git
Copy link
Collaborator

@eve-git eve-git commented Sep 15, 2023

Issue #, if available:
17505

Description of changes:
Create a loop to attempt retrieval of payment records from the payment queue callback up to a maximum of five times

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namex license (Apache 2.0).

eve-git and others added 19 commits September 14, 2023 08:18
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should probably throw an exception on line 259, that way the queue will reprocess the message if the retry fails.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@seeker25 please review

Copy link
Collaborator

@seeker25 seeker25 Sep 22, 2023

Choose a reason for hiding this comment

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

Looks good, you might not need the retry loop with the exception being thrown, but I think this is ok for now.

Would recommend removing lines on 198, 199

Copy link
Collaborator

@seeker25 seeker25 left a comment

Choose a reason for hiding this comment

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

comment above

@sonarcloud
Copy link

sonarcloud bot commented Sep 20, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Collaborator

@ozamani9gh ozamani9gh left a comment

Choose a reason for hiding this comment

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

Thanks Eve, looks good

@eve-git eve-git merged commit ff052d8 into bcgov:main Sep 25, 2023
4 of 6 checks passed
@eve-git eve-git deleted the 17505 branch May 17, 2024 13:39
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.

4 participants