class documentation

Base class for maintenance tasks.

Method __init__ Initialize maintenance task.
Method default_enabled Return default enabled state for this task.
Method is_enabled Check if task is enabled in repository configuration.
Method run Run the maintenance task.
Class Variable name Undocumented
Instance Variable auto Undocumented
Instance Variable progress Undocumented
Instance Variable repo Undocumented
def __init__(self, repo: BaseRepo, auto: bool = False, progress: Callable[[str], None] | None = None):

Initialize maintenance task.

Parameters
repo:BaseRepoRepository object
auto:boolIf True, only run if needed
progress:Callable[[str], None] | NoneOptional progress callback
def default_enabled(self) -> bool:

Return default enabled state for this task.

Returns
boolTrue if task should be enabled by default
def is_enabled(self) -> bool:

Check if task is enabled in repository configuration.

Returns
boolTrue if task is enabled
auto =

Undocumented

progress =

Undocumented

repo =

Undocumented