    def __init__(self):
        self._tasks: WorkerTask = []
        self._context = None

    def register_tasks(self, tasks: Union[List[WorkerTask], WorkerTask]) -> Union[bool, Exception]:
        if isinstance(tasks, list):
            if all(isinstance(x, WorkerTask) for x in tasks):