Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #41 from Doerge/put_fix
Browse files Browse the repository at this point in the history
Changed expected responses and errors for put(..)
  • Loading branch information
earl committed Jan 15, 2014
2 parents e6697a0 + 8470482 commit 9d926b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beanstalkc.py
Expand Up @@ -133,7 +133,7 @@ def put(self, body, priority=DEFAULT_PRIORITY, delay=0, ttr=DEFAULT_TTR):
jid = self._interact_value( jid = self._interact_value(
'put %d %d %d %d\r\n%s\r\n' % 'put %d %d %d %d\r\n%s\r\n' %
(priority, delay, ttr, len(body), body), (priority, delay, ttr, len(body), body),
['INSERTED', 'BURIED'], ['JOB_TOO_BIG']) ['INSERTED'], ['JOB_TOO_BIG','BURIED','DRAINING'])
return int(jid) return int(jid)


def reserve(self, timeout=None): def reserve(self, timeout=None):
Expand Down

0 comments on commit 9d926b5

Please sign in to comment.