Permalink
Browse files

Merge pull request #19 from maxcountryman/master

long polling supported
  • Loading branch information...
treeder committed May 21, 2014
2 parents 34ab785 + bc00a99 commit 09187fc6b3b5a4882e8a10f5d6bf828c871c8400
Showing with 3 additions and 1 deletion.
  1. +3 −1 iron_mq.py
View
@@ -90,7 +90,7 @@ def post(self, *messages):
return result['body']
- def get(self, max=None, timeout=None):
+ def get(self, max=None, timeout=None, wait=None):
"""Executes an HTTP request to get a message off of a queue.
Keyword arguments:
@@ -102,6 +102,8 @@ def get(self, max=None, timeout=None):
qitems["n"] = max
if timeout is not None:
qitems["timeout"] = timeout
+ if wait is not None:
+ qitems["wait"] = wait
qs = []
for k, v in qitems.items():
qs.append("%s=%s" % (k, v))

0 comments on commit 09187fc

Please sign in to comment.