Commit 55717488 authored by ale's avatar ale
Browse files

add support for the WORKING command

parent e06542e4
......@@ -227,6 +227,17 @@ func (pool *Pool) Nack(job *Job) error {
return nil
// Working on a job.
func (pool *Pool) Working(job *Job) error {
sess := pool.redis.Get()
defer sess.Close()
if _, err := sess.Do("WORKING", job.ID); err != nil {
return err
return nil
// Wait blocks until the given job is ACKed.
// Native WAITJOB discussed upstream at
func (pool *Pool) Wait(job *Job) error {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment