Can't create claim without passing optional parameters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zaqar |
In Progress
|
Undecided
|
Fernando Ribeiro |
Bug Description
Unlike the API or the WebSocket endpoints, the Python client requires passing the optional 'ttl' and 'grace' parameters due to a validation error in Zaqar.
* Source Code *
from zaqarclient.
client = client.Client('http://
queue = client.
claim = queue.claim()
for msg in claim
print msg
* Stack trace for missing 'ttl' parameter *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/stack/
return claim_api.
File "/opt/stack/
self._create()
File "/opt/stack/
limit=
File "/opt/stack/
resp = transport.
File "/opt/stack/
raise self.http_
zaqarclient.
* Stack trace for missing 'grace' parameter *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/stack/
return claim_api.
File "/opt/stack/
self._create()
File "/opt/stack/
limit=
File "/opt/stack/
resp = transport.
File "/opt/stack/
raise self.http_
zaqarclient.
Please advise if the bug should be first reported against the Python client instead.
description: | updated |
description: | updated |
Changed in zaqar: | |
assignee: | nobody → Fernando Ribeiro (fribeiro) |
status: | New → In Progress |