[x] Requesting increase(10)
[x] Requesting increase(20)
[x] Requesting increase(30)
[x] Requesting increase(40)
[x] Requesting increase(50)
Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "center.py", line 14, in run
response = self.func(self.num)
File "center.py", line 54, in request
self.connection.process_data_events()
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 710, in process_data_events
self._flush_output(timer.is_ready, common_terminator)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 456, in _flush_output
self._impl.ioloop.process_timeouts()
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/pika/adapters/select_connection.py", line 224, in process_timeouts
self._poller.process_timeouts()
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/pika/adapters/select_connection.py", line 366, in process_timeouts
timer['callback']()
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 94, in signal_once
assert not self._ready, '_CallbackResult was already set'
AssertionError: _CallbackResult was already set
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "center.py", line 14, in run
response = self.func(self.num)
File "center.py", line 54, in request
self.connection.process_data_events()
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 710, in process_data_events
self._flush_output(timer.is_ready, common_terminator)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 456, in _flush_output
self._impl.ioloop.process_timeouts()
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/pika/adapters/select_connection.py", line 224, in process_timeouts
self._poller.process_timeouts()
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/pika/adapters/select_connection.py", line 366, in process_timeouts
timer['callback']()
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 94, in signal_once
assert not self._ready, '_CallbackResult was already set'
AssertionError: _CallbackResult was already set
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "center.py", line 14, in run
response = self.func(self.num)
File "center.py", line 54, in request
self.connection.process_data_events()
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 710, in process_data_events
self._flush_output(timer.is_ready, common_terminator)
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 456, in _flush_output
self._impl.ioloop.process_timeouts()
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/pika/adapters/select_connection.py", line 224, in process_timeouts
self._poller.process_timeouts()
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/pika/adapters/select_connection.py", line 366, in process_timeouts
timer['callback']()
File "/home/appleyuchi/.virtualenvs/python2.7/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 94, in signal_once
assert not self._ready, '_CallbackResult was already set'
AssertionError: _CallbackResult was already set
解决方案:
开一次线程就join一次,不要把n个线程都开完了再一次性join