LearnBoost/kue — Issue #91: jobs returned by Job.get() don't fire events
Author: RandomEtc
Created: 2011-12-31 04:10:29+00:00
State: open

This is similar to #68 but not quite the same. We use `Job.get` to avoid creating duplicate jobs, but when we add `on('complete',...)` handler for the Job instance returned by `Job.get` then nothing fires. This is because the redis pubsub events are wired into job's EventEmitter using `events.add(job)` which is only called after a successful `job.save`.

I'm not sure if we should call `job.save` ourselves on the returned job from `Job.get` or if we should call `events.add(job)` or if `Job.get` should be doing that - thoughts?