You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't help but think I'm missing something obvious, but I can't for the life of me get reserve_job working. Using the basic code below to reserve a job ID I know exists and is available in the watched tube:
I get a BadFormatError which the documentation suggests shouldn't be hit unless something is amiss in the library.
Traceback (most recent call last):
File "/Users/ropetin/greenstalk/./testgreen.py", line 3, in <module>
client.reserve_job(1)
File "/Users/ropetin/.local/share/virtualenvs/greenstalk-evfV_dNi/lib/python3.9/site-packages/greenstalk.py", line 261, in reserve_job
return self._job_cmd(b'reserve-job %d' % id, b'RESERVED')
File "/Users/ropetin/.local/share/virtualenvs/greenstalk-evfV_dNi/lib/python3.9/site-packages/greenstalk.py", line 187, in _job_cmd
id, size = (int(n) for n in self._send_cmd(cmd, expected))
File "/Users/ropetin/.local/share/virtualenvs/greenstalk-evfV_dNi/lib/python3.9/site-packages/greenstalk.py", line 176, in _send_cmd
return _parse_response(line, expected)
File "/Users/ropetin/.local/share/virtualenvs/greenstalk-evfV_dNi/lib/python3.9/site-packages/greenstalk.py", line 411, in _parse_response
raise ERROR_RESPONSES[status](values)
greenstalk.BadFormatError: []
The text was updated successfully, but these errors were encountered:
I can't help but think I'm missing something obvious, but I can't for the life of me get reserve_job working. Using the basic code below to reserve a job ID I know exists and is available in the watched tube:
I get a BadFormatError which the documentation suggests shouldn't be hit unless something is amiss in the library.
The text was updated successfully, but these errors were encountered: