Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

long polling supported #19

Merged
merged 1 commit into from

2 participants

Max Countryman Travis Reeder
Max Countryman

No description provided.

Travis Reeder
Owner

Thanks!

Travis Reeder treeder merged commit 09187fc into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 9, 2014
  1. Max Countryman

    long polling supported

    maxcountryman authored
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 iron_mq.py
4 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))
Something went wrong with that request. Please try again.