Skip to content

Commit

Permalink
Merge pull request #6076 from hashicorp/f-comment-stable-field
Browse files Browse the repository at this point in the history
Add more comments to clarify job.Stable field
  • Loading branch information
preetapan authored Aug 5, 2019
2 parents 692cd9c + 87b9bd3 commit 84ff32f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nomad/structs/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3313,7 +3313,10 @@ type Job struct {

// Stable marks a job as stable. Stability is only defined on "service" and
// "system" jobs. The stability of a job will be set automatically as part
// of a deployment and can be manually set via APIs.
// of a deployment and can be manually set via APIs. This field is updated
// when the status of a corresponding deployment transitions to Failed
// or Successful. This field is not meaningful for jobs that don't have an
// update stanza.
Stable bool

// Version is a monotonically increasing version number that is incremented
Expand Down

0 comments on commit 84ff32f

Please sign in to comment.