wangyuhuiever / django-rabbitmq Goto Github PK
View Code? Open in Web Editor NEWDjango RabbitMQ Integration
License: BSD 3-Clause "New" or "Revised" License
Django RabbitMQ Integration
License: BSD 3-Clause "New" or "Revised" License
How can we schedule this consumer file(mq.py) so that it will automatically consume the records which will come in queue
Guys need help use it code, i don't understand how use is.
Pls example code
Now the consumer is started and I am getting the below mentioned error (Consumer starts consuming the records but after some time this happens): -
Exception in thread mq_thread:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/puneetbatra/billing_module/billing_services/django_rabbitmq/apps.py", line 29, in run_mq
mq.start_mq(mq_settings.get('QUEUE'))
File "/home/puneetbatra/billing_module/billing_services/django_rabbitmq/mq.py", line 20, in start_mq
channel.start_consuming()
File "/home/puneetbatra/billing_module/env/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 1866, in start_consuming
self._process_data_events(time_limit=None)
File "/home/puneetbatra/billing_module/env/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 2027, in _process_data_events
self.connection.process_data_events(time_limit=time_limit)
File "/home/puneetbatra/billing_module/env/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 825, in process_data_events
self._flush_output(common_terminator)
File "/home/puneetbatra/billing_module/env/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 522, in _flush_output
raise self._closed_result.value.error
StreamLostError: Stream connection lost: error(104, 'Connection reset by peer')
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.