added a bootstrap script for queue interaction
This commit is contained in:
parent
dbba5c4044
commit
ba1fd5e3a4
10
bin/interactq.py
Normal file
10
bin/interactq.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import interp.bootstrap
|
||||||
|
from multiprocessing.managers import BaseManager
|
||||||
|
class QueueManager(BaseManager): pass
|
||||||
|
QueueManager.register('get_inqueue' )
|
||||||
|
QueueManager.register('get_outqueue')
|
||||||
|
m = QueueManager(address=('localhost', 6666), authkey='asdf')
|
||||||
|
m.connect()
|
||||||
|
m.get_outqueue()
|
||||||
|
oq = m.get_outqueue()
|
||||||
|
iq = m.get_inqueue()
|
Loading…
Reference in New Issue
Block a user