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. |
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.