def __init__(self, *args, id=None, workflow=None, parent=None, logger=_l, **kwargs):
    self.id = id
    if id:
        key = (type(self), id)
        if (key in _instances):
            raise ValueError(f'{key[0].__name__} with ID "{id}" already exists: {_instances[key]}')
        _instances[key] = self
    self.workflow = workflow
    self.parent = parent
    self.children = list()
    if parent:
        parent.children.append(self)
    self.logger = logger
    self.loop = asyncio.get_event_loop()
    self._event_lock = set()
    self._debug = {'events'}
    self._settings = Box((self.configure(**kwargs) or dict()))
    if (not workflow):
        workflow = self
    settings = [f'{k}={v}' for (k, v) in workflow.safe_settings(self._settings).items()]
    self.debug(f"Initialized {' '.join(settings)}")
def __init__(self, *args, id=None, workflow=None, parent=None, logger=_l, **kwargs):
    self.id = id
    if id:
        key = (type(self), id)
        if (key in _instances):
            raise ValueError(f'{key[0].__name__} with ID "{id}" already exists: {_instances[key]}')
        _instances[key] = self
    self.workflow = workflow
    self.parent = parent
    self.children = list()
    if parent:
        parent.children.append(self)
    self.logger = logger
    self.loop = asyncio.get_event_loop()
    self._event_lock = set()
    self._debug = {'events'}
    self._settings = Box((self.configure(**kwargs) or dict()))
    if (not workflow):
        workflow = self
    settings = [f'{k}={v}' for (k, v) in workflow.safe_settings(self._settings).items()]
    self.debug(f"Initialized {' '.join(settings)}")