coreos/fleet — pull request #370 by bcwaldon (2014-04-30 20:35:02+00:00)
Title: Simplify Job accessors in the Registry

There is no need to call GetJob for every Job found in the /job namespace, the data is already there.

We can get rid of the additional lookup for the job state if we deserialize the Job from the directory rather than starting with the job//object key.

The additional call for the payload state can go away if we move the /state/ object to something like /job//payload-state.