Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@ladjs/agenda
Advanced tools
Agenda for Lad
npm:
npm install @ladjs/agenda
yarn:
yarn add @ladjs/agenda
This package serves as a drop-in replacement for a normal Agenda require()
call. It carries the same exact API and returns the same Agenda instance that it normally would (except it adds some extra glue on top, such as built-in integration of stop-agenda).
Default options are shown below:
#!/usr/bin/env node
const Agenda = require('@ladjs/agenda');
const mongoose = require('@ladjs/mongoose');
const Graceful = require('@ladjs/graceful');
const agenda = new Agenda();
agenda.configure({
logger: console,
// these are options passed directly to `stop-agenda`
// <https://github.com/ladjs/stop-agenda>
stopAgenda: {
cancelQuery: {
repeatInterval: {
$exists: true,
$ne: null
}
}
},
// these are jobs defined via `config.jobs`
// e.g. `agendaJobDefinitions: [ [name, agendaOptions, fn], ... ]`
agendaJobDefinitions: [],
// these get automatically invoked to `agenda.every`
// e.g. `agenda.every('5 minutes', 'locales')`
// and you define them as [ interval, job name ]
// you need to define them here for graceful handling
// e.g. `agendaRecurringJobs: [ ['5 minutes', 'locales' ], ... ]`
agendaRecurringJobs: [],
// these get automatically invoked when process starts
// e.g. `agenda.now('locales');`
// and you define them as Strings in the array
// e.g. `config.now: ['locales','ping','pong','beep', ... ]`
agendaBootJobs: []
});
mongoose.configure({
...config.mongoose,
logger,
agenda
});
mongoose
.connect()
.then(() => {
agenda.start();
})
.catch(logger.error);
const graceful = new Graceful({
mongoose,
agenda,
logger
});
graceful.listen();
Name | Website |
---|---|
Nick Baugh | http://niftylettuce.com/ |
FAQs
Agenda for Lad
The npm package @ladjs/agenda receives a total of 7 weekly downloads. As such, @ladjs/agenda popularity was classified as not popular.
We found that @ladjs/agenda demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.