UNPKG

agenda

Version:

Light weight job scheduler for Node.js

11 lines 450 B
import { Agenda } from "."; import { Document, Filter } from "mongodb"; /** * Cancels any jobs matching the passed MongoDB query, and removes them from the database. * @name Agenda#cancel * @function * @param query MongoDB query to use when cancelling * @caller client code, Agenda.purge(), Job.remove() */ export declare const cancel: (this: Agenda, query: Filter<Document>) => Promise<number | undefined>; //# sourceMappingURL=cancel.d.ts.map