Agenda Config
Callback after Agenda has started and connected to mongo
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
Cancels any jobs matching the passed MongoDB query, and removes them from the database.
Internal helper method that uses createJob to create jobs for an array of names
Strings of jobs to schedule
array of jobs created
Connect to the spec'd MongoDB server and database.
Set the default concurrency for each job
number of max concurrency
Set the default lock time (in ms) Default is 10 * 60 * 1000 ms (10 minutes)
Set default lock limit per job type
Setup definition for job Method is used by consumers of lib to setup their functions BREAKING CHANGE in v4: options moved from 2nd to 3rd parameter!
Creates a scheduled job with given interval and name/names of the job to run
Finds all jobs matching 'query'
Set the default amount jobs that are allowed to be locked at one time (GLOBAL)
Set the concurrency for jobs (globally), type does not matter
Use existing mongo connectino to pass into agenda
Set name of queue
Set the time how often the job processor checks for new jobs to process
Removes all jobs from queue
Schedule a job or jobs at a specific time
Set the sort query for finding next job Default is { nextRunAt: 1, priority: -1 }
Starts processing jobs using processJobs() methods, storing an interval ID This method will only resolve if a db has been set up beforehand.
Clear the interval that processes the jobs
Generated using TypeDoc