l.a.s.q.QuestionJanitor : class documentation

Part of lp.answers.scripts.questionexpiration View In Hierarchy

Object that takes the responsability of expiring questions without activity in a configurable period.
Method __init__ Create a new QuestionJanitor.
Method expireQuestions Expire old questions.
Method _login Setup an interaction as the Launchpad Janitor.
Method _logout Removed the Launchpad Janitor interaction.
def __init__(self, days_before_expiration=None, log=None):
Create a new QuestionJanitor.
Unknown Field: days_before_expirationDays of inactivity before a question is expired. Defaults to config.answertracker.days_before_expiration
Unknown Field: logA logger instance to use for logging. Defaults to the default logger.
def expireQuestions(self, transaction_manager):
Expire old questions.

All questions in the OPEN or NEEDSINFO state without activity in the last X days are expired.

This method will login as the support_tracker_janitor celebrity and logout after the expiration is done.

def _login(self):
Setup an interaction as the Launchpad Janitor.
def _logout(self):
Removed the Launchpad Janitor interaction.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.