Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/konstantinzolotarev/sails-hook-agenda
Agenda jobs in Sails.js application
https://github.com/konstantinzolotarev/sails-hook-agenda
Last synced: about 1 month ago
JSON representation
Agenda jobs in Sails.js application
- Host: GitHub
- URL: https://github.com/konstantinzolotarev/sails-hook-agenda
- Owner: konstantinzolotarev
- License: mit
- Created: 2015-09-03T14:53:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-28T15:12:59.000Z (about 9 years ago)
- Last Synced: 2024-10-31T11:45:43.358Z (about 2 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sails-hook-agenda
Agenda jobs in Sails.js application[![Build Status](https://travis-ci.org/konstantinzolotarev/sails-hook-agenda.svg?branch=master)](https://travis-ci.org/konstantinzolotarev/sails-hook-agenda)
# Configure
Basic configuration:
```javascript
/**
* 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