node-cron
node-cron copied to clipboard
node-cron destroy() is not a function
let test = cron.schedule('*/1 * * * * *', () => {
console.log('Message node-cron')
})
test.destroy()
TypeError: test.destroy is not a function
In the documentation it's listed as a function.
@whitesimian 289 Looks like the documentation needs to be updated.
how does one remove a job ? .destroy() is not a function.. .stop does stop a job but it persists .getTasks() shows it indefinitely?
how does one remove a job ?
.destroy() works fine in the node-cron version 2.0.3