l.s.s.base : module documentation

Part of lp.services.scripts

No module docstring
Class LaunchpadScriptFailure Something bad happened and the script is going away.
Class SilentLaunchpadScriptFailure A LaunchpadScriptFailure that doesn't log an error.
Function log_unhandled_exception_and_exit Decorator that logs unhandled exceptions via the logging module.
Class LaunchpadScript A base class for runnable scripts and cronscripts.
Class LaunchpadCronScript Logs successful script runs in the database.
Function disable_oops_handler Undocumented
Function cronscript_enabled Return True if the cronscript is enabled.
def log_unhandled_exception_and_exit(func):
Decorator that logs unhandled exceptions via the logging module.

Exceptions are reraised except at the top level. ie. exceptions are only propagated to the outermost decorated method. At the top level, an exception causes the script to terminate.

Only for methods of LaunchpadScript and subclasses. Not thread safe, which is fine as the decorated LaunchpadScript methods are only invoked from the main thread.

@contextmanager
def disable_oops_handler(logger):
Undocumented
def cronscript_enabled(control_url, name, log):
Return True if the cronscript is enabled.
API Documentation for Launchpad, generated by pydoctor at 2018-08-18 00:00:04.