~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/buildmaster/model/builder.py

  • Committer: Raphael Badin
  • Date: 2012-01-04 16:39:15 UTC
  • mto: This revision was merged to the branch mainline in revision 14654.
  • Revision ID: raphael.badin@canonical.com-20120104163915-googt0xvdw4fy9zm
Precache more data.

Show diffs side-by-side

added added

removed removed

Lines of Context:
430
430
 
431
431
    def _getCurrentBuildBehavior(self):
432
432
        """Return the current build behavior."""
 
433
        self._clean_currentjob_cache()
433
434
        if not safe_hasattr(self, '_current_build_behavior'):
434
435
            self._current_build_behavior = None
435
436
 
502
503
        """See IBuilder"""
503
504
        return getUtility(IBuildQueueSet).getByBuilder(self)
504
505
 
 
506
    def _clean_currentjob_cache(self):
 
507
        del get_property_cache(self).currentjob
 
508
 
505
509
    def requestAbort(self):
506
510
        """See IBuilder."""
507
511
        return self.slave.abort()