Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(jobserver): ensure job cleanup after fatal error - ref #1161
`Future` only completes on success or when encountering a `NonFatal` error; when encountering a fatal error, the future does not complete at all and the error is passed to the execution context. This change wraps all `Throwable` so the `Future` can complete and the `Failure` handlers can cleanup the job and properly mark it as failed.
- Loading branch information
Showing
3 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
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
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