Skip to content

konstantinzolotarev/sails-hook-agenda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sails-hook-agenda

Agenda jobs in Sails.js application

Build Status

Configure

Basic configuration:

/**
 * Connection config
 *
 * All avaialble configs form {@link https://github.com/rschmukler/agenda#configuring-an-agenda} might be used here
 */
connection: {
  /**
   * Database configuration
   */
  db: {
    /**
     * Database address
     * @type {String}
     */
    address: 'localhost:27017/agenda-jobs',

    /**
     * Collection name
     *
     * @type {String}
     */
    collection: 'agendaJobs'
  },

  /**
   * Takes a string name and sets lastModifiedBy to it in the job database.
   * Useful for if you have multiple job processors (agendas) and want to see which job queue last ran the job.
   *
   * @type {String}
   */
  name: 'sails-queue'
}

Testing

To run tests you have to run mongod on your local PC.

Run tests command: npm test

License

MIT

About

Agenda jobs in Sails.js application

Resources

License

Stars

Watchers

Forks

Packages

No packages published