lykmapipo / sails-hook-subscriber

Kue based job subscriber(consumer and workers pool) for sails
28 stars 12 forks source link

add option to disable hook #3

Closed HaNdTriX closed 9 years ago

HaNdTriX commented 9 years ago

It would be awesome being able to disable this hook. This allows us to load this hook in a separate process. e.g.:

require('sails').lift({
  hooks: {
    blueprints: false,
    controllers: false,
    cors: false,
    csrf: false,
    grunt: false,
    http: false,
    i18n: false,
    // logger: false,
    // orm: leave default hook
    policies: false,
    pubsub: false,
    request: false,
    responses: false,
    // services: leave default hook,
    session: false,
    sockets: false,
    views: false
  },
  subscriber:  {
    active: true
  }
}, function(error, sails) {
  if (error)
    return sails.log.error(error);

  sails.log('Sails worker started successful.');

});

http://stackoverflow.com/questions/30580472/disable-user-hook-in-sails

lykmapipo commented 9 years ago

Am on it

HaNdTriX commented 9 years ago

any progress on this?