node-cron icon indicating copy to clipboard operation
node-cron copied to clipboard

get list of scheduled jobs

Open ronytesler opened this issue 3 years ago • 2 comments

How can I see all currently scheduled cron jobs?

ronytesler avatar Dec 25 '22 01:12 ronytesler

You can use getTasks() function:

import cron from "node-cron";
console.log(cron.getTasks());

MZPL avatar Dec 30 '22 13:12 MZPL

It should only show tasks scheduled from the running process?

ronytesler avatar Dec 30 '22 13:12 ronytesler