Package Exports
- @momsfriendlydevco/agents
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@momsfriendlydevco/agents) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@momsfriendlydevco/agents
Deferred async job scheduler and runner for local or remote batch queues.
FIXME: Documentation to come
Recommended emitter bindings
var prefix = colors.blue('[agents]');
agents
.on('init', ()=> console.log(prefix, 'Created agents interface'))
.on('ready', ()=> console.log(prefix, 'Agents interface ready'))
.on('destroy', ()=> console.log(prefix, 'Destroying agents interface'))
.on('destroyed', ()=> console.log(prefix, 'Destroyed agents interface'))
.on('refreshWarn', (path, msg) => console.log(prefix, colors.yellow('WARNING'), colors.cyan(path), msg))
.on('refresh', ids => console.log(prefix, 'Loaded agents:', ids.map(i => colors.cyan(i)).join(', ')))
.on('tick', id => console.log(prefix, 'Refreshing agent', colors.cyan(id), 'from cron timing', colors.cyan(agents.agents[id].timing)))
.on('scheduled', id => console.log(prefix, 'Installed agent', colors.cyan(id), 'with timing', colors.cyan(agents.agents[id].timing)))
.on('runImmediate', id => console.log(prefix, 'Agent', colors.cyan(id), 'marked for immediate run!'))
.on('log', (session, ...args) => console.log.apply(this, args))
.on('warn', (session, ...args) => console.log.apply(this, ['WARN'].concat(args)))