Assertionerror: _callbackresult was already set solution

Source: Internet
Author: User
Tags assert
[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, in run
Response = Self.func (Self.num)
File "center.py", line Wu, 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, in Signal_once
Assert not Self._ready, ' _callbackresult is 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, in run
Response = Self.func (Self.num)
File "center.py", line Wu, 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, in Signal_once
Assert not Self._ready, ' _callbackresult is 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, in run
Response = Self.func (Self.num)
File "center.py", line Wu, 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, in Signal_once
Assert not Self._ready, ' _callbackresult is already set '

Assertionerror: _callbackresult was already set


Solution:

Once a thread is open once, do not put n threads all over again and join again

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.