示例#1
0
    def __init__(self, host_list=None, random_unique_bytes=RANDOM_UNIQUE_BYTES):
        super(GearmanClient, self).__init__(host_list=host_list)

        self.random_unique_bytes = random_unique_bytes

        # The authoritative copy of all requests that this client knows about
        # Ignores the fact if a request has been bound to a connection or not
        self.request_to_rotating_connection_queue = compat.defaultdict(collections.deque)
示例#2
0
    def __init__(self, host_list=None, random_unique_bytes=RANDOM_UNIQUE_BYTES):
        super(GearmanClient, self).__init__(host_list=host_list)

        self.random_unique_bytes = random_unique_bytes

        # The authoritative copy of all requests that this client knows about
        # Ignores the fact if a request has been bound to a connection or not
        self.request_to_rotating_connection_queue = compat.defaultdict(collections.deque)
示例#3
0
    def __init__(self, host_ls=None, random_unique_bytes=RANDOM_UNIQUE_BYTES):
        super(GearmanClient, self).__init__(host_ls=host_ls)

        self.random_unique_bytes = random_unique_bytes

        # The authoritative copy of all requests that this client knows about
        # Ignores the fact if a request has been bound to a connection or not
        self.request_trace = weakref.WeakKeyDictionary(
            compat.defaultdict(collections.deque))
示例#4
0
 def __init__(self, *largs, **kwargs):
     super(MockGearmanWorker, self).__init__(*largs, **kwargs)
     self.worker_job_queues = compat.defaultdict(collections.deque)
示例#5
0
 def __init__(self, *largs, **kwargs):
     super(MockGearmanWorker, self).__init__(*largs, **kwargs)
     self.worker_job_queues = compat.defaultdict(collections.deque)