def __init__(self, func, pool_size=100, timeout=None):
# XXX: Is it necessary to patch all? I know we need at least, socket,
# ssl, dns, and signal. There may be calls inside boto/botocore that
# require more patching.
super(GeventWorker, self).__init__(func, pool_size=pool_size,
timeout=timeout)
self.logger = get_logger(__name__)
self.pool = Pool(size=pool_size)
评论列表
文章目录