fix(storage): correct exit_code=0 treated as failed for successful jobs

This commit is contained in:
2026-07-07 01:34:46 -04:00
parent 599af5a828
commit d42a0ab412
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -228,7 +228,7 @@ func (jm *JobManager) runJob(job db.StorageJob) {
}
}
exitCode := -1
exitCode := 0
if err != nil {
if exitErr, ok := err.(*exec.ExitError); ok {
exitCode = exitErr.ExitCode()