Cannot call method 'bind' of undefined
Created by: lchenay
Error append in https://github.com/OptimalBits/bull/blob/25480022f1c01b782afb0b81c68bad65b2933615/lib/queue.js#L287.
One of the root cause if : https://github.com/OptimalBits/bull/blob/25480022f1c01b782afb0b81c68bad65b2933615/lib/queue.js#L58
Step to produce error:
- Create a queue in order to add a new job to process.
- Do not call queue.process() (worker that process job are separated from code that create job)
- Close connection between redis and client.
- This line https://github.com/OptimalBits/bull/blob/25480022f1c01b782afb0b81c68bad65b2933615/lib/queue.js#L68 will detect connection end and will try to rerun the queue. But this last one have no handler on client side, it's only use to push new job.