def update_priority(self):
    ' Update job priorities. '
    prioritized = (lambda job: ((job.rule in self.priorityrules) or (not self.priorityfiles.isdisjoint(job.output))))
    for job in self.needrun_jobs:
        self._priority[job] = job.rule.priority
    for job in self.bfs(self.dependencies, *filter(prioritized, self.needrun_jobs), stop=self.noneedrun_finished):
        self._priority[job] = Job.HIGHEST_PRIORITY
Update job priorities.
def update_priority(self):
    '  '
    prioritized = (lambda job: ((job.rule in self.priorityrules) or (not self.priorityfiles.isdisjoint(job.output))))
    for job in self.needrun_jobs:
        self._priority[job] = job.rule.priority
    for job in self.bfs(self.dependencies, *filter(prioritized, self.needrun_jobs), stop=self.noneedrun_finished):
        self._priority[job] = Job.HIGHEST_PRIORITY