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

See all active cron jobs

Open maggiechew opened this issue 1 year ago • 1 comments

⭐ Suggestion

I have been looking around and haven't found anything similar to what I'm looking for. Is there any way I can, preferably from the command line, see how many cron jobs are currently pending/ running? I'd like to get a sense of how many resources it's using up, how many are scheduled for the future, etc. If there is already something that does this, I would appreciate the guidance! Thank you

💻 Use Cases

Scheduling multiple jobs based on given number based on external app; how to check how many are scheduled/ running? Sense of resources used

❌ Related Problems

No response

maggiechew avatar Mar 27 '24 22:03 maggiechew

Hi there, thank you for your suggestion!

Unfortunately, we do not provide that feature at the moment. cron focuses on the scheduling part, and for use cases like yours, the managing/oversight part has to be developed on your side.

I'm not sure if this is a feature we'd like to add, but in the meantime, you can either create a small job manager in your code or maybe look for that feature in other libraries, such as bull.

Hope that helps!

sheerlox avatar Apr 07 '24 08:04 sheerlox