Skip to content

Instantly share code, notes, and snippets.

@gate3
Created September 13, 2019 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gate3/581cb39267742b9e5f7792de9a7163dd to your computer and use it in GitHub Desktop.
Save gate3/581cb39267742b9e5f7792de9a7163dd to your computer and use it in GitHub Desktop.
const BaseQueue = require('./base_worker')
const userModel = require('../models/userModel')
class UserWorker extends BaseQueue {
constructor () {
super('users', userModel)
}
runQueue () {
super.runQueue()
}
}
const userQ = new UserWorker()
userQ.runQueue()
// You can run any other queue with similar implementation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment