Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dadgar committed Apr 20, 2017
1 parent 694d9c4 commit e0af3d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nomad/state/state_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,8 @@ func (s *StateStore) upsertJobVersion(index uint64, job *structs.Job, txn *memdb
return nil
}

// JobByID is used to lookup a job by its ID
// JobByID is used to lookup a job by its ID. JobByID returns the current/latest job
// version.
func (s *StateStore) JobByID(ws memdb.WatchSet, id string) (*structs.Job, error) {
txn := s.db.Txn(false)

Expand Down

0 comments on commit e0af3d7

Please sign in to comment.