Source code for watchmaker.workers.base
"""Watchmaker base worker."""
import abc
import logging
[docs]
class WorkerBase:
"""Define the architecture of a Worker."""
def __init__(self, system_params, *args, **kwargs):
self.log = logging.getLogger(f"{__name__}.{self.__class__.__name__}")
self.system_params = system_params
WorkerBase.args = args
WorkerBase.kwargs = kwargs
[docs]
@abc.abstractmethod
def before_install(self):
"""Add before_install method to all child classes."""
[docs]
@abc.abstractmethod
def install(self):
"""Add install method to all child classes."""