Skip to content

Make an error state #34

Open
Open
@arpit-saxena

Description

@arpit-saxena

When an unexpected thing happens during deployment, the service should be put in an error state which can be manually stopped. We can't leave the state as Deploying since no operation would then be able to work on it.

Needed here:

// There should be no error here, ever. Checking it to make sure
// TODO: On error, set state to an "error" state which only stop should be able to modify
tag, err1 = history.SetState(a.RepoURL, tag, state)
for ; err1 != nil; tag, err1 = history.SetState(a.RepoURL, tag, state) {
log.Errorf("setting state to %v failed - %v. Retrying...", state.Status, err1)
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions