-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(proof_data_handler): Unlock jobs on transient errors (#2486)
## What ❔ Currently, proof data handler locks the job for proof generation, and starts fetching required data after that. If any error happens during fetching, the method will err, and the job will remain locked. This PR changes it, so that if any error occurs, we unlock the job before we return an error. Additionally, it reduces the amount of non-necessary panics in the touched code, and adds some docs. ## Why ❔ Correctness & efficiency. ## Checklist <!-- Check your PR fulfills the following items. --> <!-- For draft PRs check the boxes as you complete them. --> - [ ] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [ ] Documentation comments have been added / updated. - [ ] Code has been formatted via `zk fmt` and `zk lint`.
- Loading branch information
Showing
3 changed files
with
131 additions
and
44 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
...lib/dal/.sqlx/query-a23d63b7c4264ee0f5b60c09f09f8fbd8fdaf23266412e2faffb7e3813213b98.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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