l.b.s.b.BugJanitor : class documentation

Part of lp.bugs.scripts.bugexpire View In Hierarchy

Expire Incomplete BugTasks that are older than a configurable period.

The BugTask must be unassigned, and the project it is associated with must use Malone for bug tracking.

Method __init__ Create a new BugJanitor.
Method expireBugTasks Expire old, unassigned, Incomplete BugTasks.
Method _login Setup an interaction as the bug janitor.
Method _logout End the bug janitor interaction.
def __init__(self, days_before_expiration=None, log=None, target=None, limit=None):
Create a new BugJanitor.
Unknown Field: days_before_expirationDays of inactivity before a question is expired. Defaults to config.malone.days_before_expiration.
Unknown Field: logA logger instance to use for logging. Defaults to the default logger.
Unknown Field: targetThe target for expiring bugs.
Unknown Field: limitExpire no more than limit bugtasks.
def expireBugTasks(self, transaction_manager):
Expire old, unassigned, Incomplete BugTasks.

Only BugTasks for projects that use Malone are updated. This method will login as the bug_watch_updater celebrity and logout after the expiration is done.

def _login(self):
Setup an interaction as the bug janitor.

The role of bug janitor is usually played by bug_watch_updater.

def _logout(self):
End the bug janitor interaction.
API Documentation for Launchpad, generated by pydoctor at 2019-02-23 00:00:04.