Skip to content

Commit

Permalink
long polling supported
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcountryman committed May 9, 2014
1 parent 34ab785 commit bc00a99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iron_mq.py
Expand Up @@ -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:
Expand All @@ -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))
Expand Down

0 comments on commit bc00a99

Please sign in to comment.