def __init__(self, index, transport, pool_type, pool_size, worker_type, logger, runpath=None):
    self._metadata = {'index': index, 'pid': os.getpid()}
    self._transport = transport
    self._pool_type = pool_type
    self._pool_size = int(pool_size)
    self._pool_cfg = None
    self._worker_type = worker_type
    self._to_heartbeat = float(0)
    self.runpath = runpath
    self.logger = logger
def __init__(self, index, transport, pool_type, pool_size, worker_type, logger, runpath=None):
    self._metadata = {'index': index, 'pid': os.getpid()}
    self._transport = transport
    self._pool_type = pool_type
    self._pool_size = int(pool_size)
    self._pool_cfg = None
    self._worker_type = worker_type
    self._to_heartbeat = float(0)
    self.runpath = runpath
    self.logger = logger