code: func (e *Job) MatchesDefinition(def catalog.Definition) bool {
  	return e.JobID == def.JobID &&
  		e.Flavor == def.Flavor &&
  		e.Schedule == def.Schedule &&
  		e.Acls.Equal(&def.Acls) &&
  		bytes.Equal(e.Task, def.Task) &&
  		bytes.Equal(e.TriggeringPolicyRaw, def.TriggeringPolicy) &&
  		equalSortedLists(e.TriggeredJobIDs, def.TriggeredJobIDs)
  }
docs: // MatchesDefinition returns true if job definition in the entity matches the
  // one specified by catalog.Definition struct.