Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
chantra  sparts   master ✹  PYTHONPATH=. python demo/producer_consumer.py --Producer-foobar a b [ruby-2.2.1] 10:08:53
INFO:ProducerConsumer.Producer:Producer put 0.883608399041 into queue
DEBUG:ProducerConsumer:All tasks started
INFO:ProducerConsumer.Producer:option foobar type: <type 'str'> value: ['a', 'b']
DEBUG:ProducerConsumer:VService Active. Awaiting graceful shutdown.
INFO:ProducerConsumer.Producer:Producer put 0.504389502792 into queue
INFO:ProducerConsumer.Producer:option foobar type: <type 'str'> value: ['a', 'b']
INFO:ProducerConsumer.Producer:Producer put 0.341550019729 into queue
INFO:ProducerConsumer.Producer:option foobar type: <type 'str'> value: ['a', 'b']
INFO:ProducerConsumer.Producer:Producer put 0.674296821862 into queue
INFO:ProducerConsumer.Producer:option foobar type: <type 'str'> value: ['a', 'b']
INFO:ProducerConsumer.Producer:Producer put 0.444015554579 into queue
INFO:ProducerConsumer.Producer:option foobar type: <type 'str'> value: ['a', 'b']
INFO:ProducerConsumer.Consumer:[Consumer-3] Got 0.504389502792
INFO:ProducerConsumer.Consumer:[Consumer-2] Got 0.883608399041
INFO:ProducerConsumer.Consumer:[Consumer-5] Got 0.674296821862
INFO:ProducerConsumer.Consumer:[Consumer-4] Got 0.341550019729
INFO:ProducerConsumer.Consumer:[Consumer-1] Got 0.444015554579
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.