Repository navigation
fix: decrypt a submission once however many decryption tasks run - #3289
Open
kelvin-muchiri wants to merge 1 commit into
Open
kelvin-muchiri wants to merge 1 commit into
kelvin-muchiri wants to merge 1 commit into
Conversation
A decryption task claims the submission by moving its decryption status from pending to the new in_progress status in a single update. A task that cannot claim it returns without changes, so overlapping tasks no longer decrypt a submission twice, duplicating its media and leaving its attachments pointing at soft-deleted copies. Failed now means the error needs a person. Missing media, KMS connection errors and exhausted retries leave the submission pending with the error recorded, so it is decrypted again later. Saves that do not change the XML no longer write the decryption status, so a copy loaded before the claim cannot overwrite it. Closes #3270
This branch has not been deployed
This file contains hidden or 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
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.
Changes / Features implemented
Steps taken to verify this change does what is intended
Side effects of implementing this change
None.
Before submitting this PR for review, please make sure you have:
Closes #3270
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.