c.l.s.g.BugWatchActivityPruner(TunableLoop) : class documentation

Part of canonical.launchpad.scripts.garbo View In Hierarchy

A TunableLoop to prune BugWatchActivity entries.
Method getPrunableBugWatchIds Return the set of BugWatch IDs whose activity is prunable.
Method pruneBugWatchActivity Prune the BugWatchActivity for bug_watch_ids.
Method __call__ Perform an iteration of the loop.
Method isDone Return True if there are no watches left to prune.

Inherited from TunableLoop:

Method __init__ Undocumented
Method run Undocumented
def getPrunableBugWatchIds(self, chunk_size):
Return the set of BugWatch IDs whose activity is prunable.
def pruneBugWatchActivity(self, bug_watch_ids):
Prune the BugWatchActivity for bug_watch_ids.
def __call__(self, chunk_size):
Perform an iteration of the loop.

The chunk_size parameter says (in some way you define) how much work the LoopTuner believes you should try to do in this iteration in order to get as close as possible to your time goal.

def isDone(self):
Return True if there are no watches left to prune.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.