added something to consume the service
This commit is contained in:
parent
cbc2d13e70
commit
eefcc682cc
19
bin/results.py
Normal file
19
bin/results.py
Normal file
@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from multiprocessing.managers import BaseManager
|
||||
|
||||
import numpy as np
|
||||
|
||||
import interp.bootstrap
|
||||
|
||||
class QueueManager(BaseManager): pass
|
||||
QueueManager.register('get_outqueue')
|
||||
|
||||
m = QueueManager(address=('gannon', 50000), authkey='asdf')
|
||||
m.connect()
|
||||
|
||||
if __name__ == '__main__':
|
||||
outq = m.get_outqueue()
|
||||
|
||||
while True:
|
||||
print outq.get()
|
Loading…
Reference in New Issue
Block a user