aboutsummaryrefslogtreecommitdiffstats
path: root/bin/send_msg
diff options
context:
space:
mode:
authorsideshowdave72017-03-31 14:19:43 -0600
committersideshowdave72017-03-31 14:19:43 -0600
commit7f98c7a652bd4f3413d874ce8a1caad072c45e60 (patch)
treecfc130d6d76835cd3896f6d7b2f5ecafddbcf567 /bin/send_msg
parentbf5127d4788f7532c61b1cc4c04659af5706b2dc (diff)
downloadeventmq-7f98c7a652bd4f3413d874ce8a1caad072c45e60.tar.gz
eventmq-7f98c7a652bd4f3413d874ce8a1caad072c45e60.zip
fixup some worker logic
Diffstat (limited to 'bin/send_msg')
-rwxr-xr-xbin/send_msg14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/send_msg b/bin/send_msg
index b0ea160..c58d369 100755
--- a/bin/send_msg
+++ b/bin/send_msg
@@ -22,15 +22,15 @@ if __name__ == "__main__":
22 'callable': 'pretend_job', 22 'callable': 'pretend_job',
23 'class_args': ('blurp',), 23 'class_args': ('blurp',),
24 'class_kwargs': {'kwarg1': True}, 24 'class_kwargs': {'kwarg1': True},
25 'args': (2, ), 25 'args': (1, ),
26 'kwargs': {} 26 'kwargs': {}
27 }] 27 }]
28 28
29 send_request(s, msg, guarantee=True, reply_requested=True, timeout=10) 29 send_request(s, msg, guarantee=True, reply_requested=True, timeout=10)
30 print zmq.POLLOUT 30 # print zmq.POLLOUT
31 events = dict(poller.poll(500)) 31 # events = dict(poller.poll(500))
32 print events 32 # print events
33 if events[s.zsocket] == zmq.POLLIN: 33 # if events[s.zsocket] == zmq.POLLIN:
34 msg = s.recv_multipart() 34 # msg = s.recv_multipart()
35 35
36 print msg 36 # print msg