Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@ladjs/agenda
Advanced tools
Readme
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 1 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.