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

pool: Improve transaction (#201) #219

Closed

Conversation

jianghushinian
Copy link
Contributor

My general idea is to replace the old pending_payments queue with a database table(payment), to persist the data. make sure that afte the subtract the points, pending payment records still exists when the program exits unexpectedly, and the transaction failure retry can be achieved, finally moved confirm payment to a new task.

@jianghushinian
Copy link
Contributor Author

Thank you very much for @ppolewicz suggestion.
I don’t know if this PR is popular or not, this is a little improvement I made for this issue.
@mariano54 Do you want to ask some questions about this PR?

@jianghushinian jianghushinian force-pushed the improve-transaction branch 2 times, most recently from 11046d5 to 38b3bd9 Compare August 3, 2021 01:34
@jianghushinian jianghushinian force-pushed the improve-transaction branch 5 times, most recently from 0ceaa9b to 187e5b0 Compare August 16, 2021 01:33
@jack60612
Copy link
Contributor

Not needed as the entire payment system should be changed in production anyway

@mariano54
Copy link
Contributor

I agree with jack. While this looks like a very good change, people might want to do things differently. Also, it does add more code to the reference. Thank you for the PR though.

@mariano54 mariano54 closed this Sep 15, 2021
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