Skip to content

Commit

Permalink
fix(edge-stack): dead edge stack with polling EE-5713 (portainer#3522)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmenginnz committed Jul 26, 2023
1 parent 58def7b commit 7f64769
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/http/handler/edgestacks/edgestack_create_git.go
Expand Up @@ -197,9 +197,8 @@ func (handler *Handler) createEdgeStackFromGitRepository(r *http.Request, tx dat
}

if jobID != "" {
err = handler.DataStore.EdgeStack().UpdateEdgeStackFunc(edgeStack.ID, func(edgeStack *portaineree.EdgeStack) {
edgeStack.AutoUpdate.JobID = jobID
})
edgeStack.AutoUpdate.JobID = jobID
err = tx.EdgeStack().UpdateEdgeStack(edgeStack.ID, edgeStack)
if err != nil {
return edgeStack, errors.WithMessage(err, "failed updating edge stack")
}
Expand Down

0 comments on commit 7f64769

Please sign in to comment.