l.b.s.c.core : module documentation

Part of lp.bugs.scripts.checkwatches

Classes and logic for the checkwatches cronscript.
Class TooMuchTimeSkew Time difference between ourselves and the remote server is too much.
Function unique Generate only unique items from an iterator.
Function suggest_batch_size Suggest a value for batch_size if it's not set.
Function record_errors Context manager to record errors in BugWatchActivity.
Class BaseScheduler Run jobs according to a policy.
def unique(iterator):
Generate only unique items from an iterator.
def suggest_batch_size(remote_system, num_watches):
Suggest a value for batch_size if it's not set.

Given the number of bug watches for a remote_system, this sets a suggested batch size on it. If remote_system already has a batch size set, this does not override it.

Parametersremote_systemAn ExternalBugTracker.
num_watchesThe number of watches for remote_system.
@contextmanager
def record_errors(transaction, bug_watch_ids):
Context manager to record errors in BugWatchActivity.

If an exception occurs, it will be logged in BugWatchActivity against all the given watches.

API Documentation for Launchpad, generated by pydoctor at 2018-02-20 00:00:10.