Sets up tables in a PostgreSQL database.
knexKnex instance to use to setup tables.optionsSpecifies table names and other options
Drops tables from PostgreSQL database.
knexKnex instance to use to drop tablesoptionsSpecifies table names
Represents a single or recurring job by ID.
idnumber ID number of jobknexKnex Knex instance to usetableOptionsTableOptions Table options including namespollMsnumber Poll intervaltxKnex.Transaction Transaction if applicable (inside processing function)
Waits for a job to complete (only applicable to non-recurring jobs)
Removes job from queue
This represents a single queue.
nameknexoptionsTableOptions Job optionsdataobject Job data
Adds a single or recurring job to the queue
dataobject Job data to be passed to the processing functionoptionsJobOptions Job options for configuring repeat and output handling
Gets a Job object from the queue.
idnumber Job ID number
Process runs the queue and processes jobs.
cbFunction Callback to handle a job. Return value should be job result.