kelektiv / node-cron

Cron for NodeJS.
MIT License
8.3k stars 617 forks source link

See all active cron jobs #871

Open maggiechew opened 3 months ago

maggiechew commented 3 months ago

⭐ 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

sheerlox commented 2 months ago

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!