Skip to content

Instantly share code, notes, and snippets.

@kvalv
Created February 25, 2016 10:45
Show Gist options
  • Select an option

  • Save kvalv/bc78f5006c44400d74d3 to your computer and use it in GitHub Desktop.

Select an option

Save kvalv/bc78f5006c44400d74d3 to your computer and use it in GitHub Desktop.
from multiprocessing.managers import BaseManager
class QueueManager(BaseManager): pass
QueueManager.register('get_queue')
m = QueueManager(address=('78.91.11.26', 50000), authkey='lol')
m.connect()
queue = m.get_queue()
queue.put('hello')
queue.put("yes")
print(queue.qsize())
print(queue.get(1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment