jobimpl-osbuild: report a failed job on panic
Previously, the worker would happily report success if osbuild succeeded, there was no JobError, but the job actually panicked in the meantime. Let's fix this by adding a recovery mechanism. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
19e45b528f
commit
d6eacad494
2 changed files with 10 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ const (
|
|||
ErrorOSTreeParamsInvalid ClientErrorCode = 34
|
||||
ErrorOSTreeDependency ClientErrorCode = 35
|
||||
ErrorRemoteFileResolution ClientErrorCode = 36
|
||||
ErrorJobPanicked ClientErrorCode = 37
|
||||
)
|
||||
|
||||
type ClientErrorCode int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue