wuttjamaican.cleanup¶
Cleanup handler
- class wuttjamaican.cleanup.Cleaner(config)[source]¶
Base class for cleaners.
Each cleaner should typically perform cleanup for “one portion” of the overall system. The cleanup handler typically orchestrates the overall cleanup.
- class wuttjamaican.cleanup.CleanupHandler(config)[source]¶
Base class and default implementation for the cleanup handler.
You typically would not instantiate this directly; rather call
get_cleanup_handler()on the app handler.The cleanup is typically scheduled to run overnight (via wutta cleanup), but could be ran more often (or not at all) as needed.
- cleanup_everything(dry_run=False)[source]¶
Invoke cleanup logic for all registered cleaners.
This calls
get_all_cleaners()and then callscleanup()on each cleaner object.