Hello, simple PR for two things:
- fix
lockKey
field usage - prevouslylockKey
was field (used in tests) and method, now left only method - extracted
processOnNextTick
method, for simplicty and better possibility to override in custom cases
In my project i need to stop processing job in custom case, so I can override processOnNextTick
to do this. Same thing with isQueueClosing()
.
Changes do not affect logic, so could not cause problems.
Regards