lykmapipo / kue-scheduler

A job scheduler utility for kue, backed by redis and built for node.js
246 stars 47 forks source link

Refactor codes to utilities, job patch, queue patch than polluting queue instance #50

Open lykmapipo opened 7 years ago

gmcnaught commented 7 years ago

So this would be a refactor to modify this library (and perhaps kue-unique as well?) to not modify the queue and job objects, but instead be separate utility objects?

lykmapipo commented 7 years ago

@gmcnaught Sure. Another intention is to move other logics to Job than pollute Queue only.

An example kue-scheduler contain logics to clear kue db and reset current kue queue instance and safe shutdown. We can extract them and provide as utility libraries on top of kue for other to use and kue-scheduler can depend on them.

Sure even kue-unique is touched in this area.