'Get all labels associated with this host queue entry (either via the
meta_host or as a job dependency label).  The labels yielded are not
guaranteed to be unique.
@yields Label instances associated with this host_queue_entry.'

def get_labels(self):

    if self.meta_host:
        (yield Label(id=self.meta_host, always_query=False))
    labels = Label.fetch(joins='JOIN    afe_jobs_dependency_labels    AS    deps    ON    (afe_labels.id    =    deps.label_id)', where=('deps.job_id    =    %d' % self.job.id))
    for label in labels:
        (yield label)
