Worker

class Worker(BaseNode, ABC):

A worker node that works on tasks. It is the basic unit of task processing in the workforce system.

Parameters:

  • description (str): Description of the node.

init

def __init__(self, description: str):

repr

def __repr__(self):

_get_dep_tasks_info

def _get_dep_tasks_info(dependencies: List[Task]):

set_channel

def set_channel(self, channel: TaskChannel):

stop

def stop(self):

Stop the worker.