Skip to content

Make an error state #34

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)
}

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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