From e0af3d7e19c4fe29bd8a8921dd665c36f9007f27 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Wed, 19 Apr 2017 16:44:38 -0700 Subject: [PATCH] docs --- nomad/state/state_store.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nomad/state/state_store.go b/nomad/state/state_store.go index b4c014e0c24..a2e8c60eaa5 100644 --- a/nomad/state/state_store.go +++ b/nomad/state/state_store.go @@ -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)