Skip to content

Commit 756b026

Browse files
committed
deploy
1 parent c21ec8d commit 756b026

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/next_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
branches:
55
- develop # change to main if needed
6-
- next-tfvars
6+
- fix/cli-error-reporting
77

88
jobs:
99
deploy:

next/controllers/projects.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ func (d DiggerController) SetJobStatusForProject(c *gin.Context) {
122122
return
123123
}
124124

125+
batch.Status = int16(orchestrator_scheduler.BatchJobFailed)
126+
batchErr := dbmodels.DB.GormDB.Save(batch).Error
127+
if batchErr != nil {
128+
log.Printf("error while updating batch status: %v", err)
129+
}
130+
125131
default:
126132
log.Printf("Unexpected status %v", request.Status)
127133
c.JSON(http.StatusInternalServerError, gin.H{"error": "Error saving job"})

0 commit comments

Comments
 (0)