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

Fix async submission count discrepancy #2469

Merged
merged 2 commits into from
Sep 4, 2023

Conversation

KipSigei
Copy link
Contributor

@KipSigei KipSigei commented Aug 15, 2023

Changes / Features implemented

Use transaction.on_commit() to ensure the post_save signal that updates submission count is executed only when a transaction is completed. More info on this change can be found here

Steps taken to verify this change does what is intended

Side effects of implementing this change

  • QA

Before submitting this PR for review, please make sure you have:

  • Included tests
  • Updated documentation

Closes #

@KipSigei KipSigei force-pushed the fix-async-submission-counts-discrepancy branch 2 times, most recently from 6cf7869 to 51387b2 Compare August 17, 2023 06:59
@KipSigei KipSigei changed the title [DNM] Track async submission count retries Fix async submission count discrepancy Aug 17, 2023
@KipSigei KipSigei force-pushed the fix-async-submission-counts-discrepancy branch from 51387b2 to cc2e049 Compare September 1, 2023 09:32
Signed-off-by: Kipchirchir Sigei <[email protected]>
@KipSigei KipSigei merged commit 1d52a9a into main Sep 4, 2023
10 checks passed
@KipSigei KipSigei deleted the fix-async-submission-counts-discrepancy branch September 4, 2023 09:43
@KipSigei KipSigei mentioned this pull request Sep 4, 2023
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.

2 participants