Permalink
Browse files

Merge pull request #41 from Doerge/put_fix

Changed expected responses and errors for put(..)
  • Loading branch information...
2 parents e6697a0 + 8470482 commit 9d926b55ee1f995deabc854cccd6328428374c9e @earl committed Jan 15, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 beanstalkc.py
View
@@ -133,7 +133,7 @@ def put(self, body, priority=DEFAULT_PRIORITY, delay=0, ttr=DEFAULT_TTR):
jid = self._interact_value(
'put %d %d %d %d\r\n%s\r\n' %
(priority, delay, ttr, len(body), body),
- ['INSERTED', 'BURIED'], ['JOB_TOO_BIG'])
+ ['INSERTED'], ['JOB_TOO_BIG','BURIED','DRAINING'])
return int(jid)
def reserve(self, timeout=None):

0 comments on commit 9d926b5

Please sign in to comment.