Reference¶
beanstalkc - A beanstalkd Client Library for Python
Core Classes¶
-
class
beanstalkc.
Connection
(host='localhost', port=11300, parse_yaml=True, connect_timeout=None)[source]¶ -
-
put
(body, priority=2147483648, delay=0, ttr=120)[source]¶ Put a job into the current tube. Returns job id.
-
release
(jid, priority=2147483648, delay=0)[source]¶ Release a reserved job back into the ready queue.
-
reserve
(timeout=None)[source]¶ Reserve a job from one of the watched tubes, with optional timeout in seconds. Returns a Job object, or None if the request times out.
-