jurassicjs / nuxt-scheduler

Create scheduled jobs with human readable time settings
211 stars 6 forks source link

Feature Request - Retrieve Next Running Date, Status of Cron Jobs, and Ability to Name Cron Jobs #7

Open AzSiAz opened 1 year ago

AzSiAz commented 1 year ago

Hello 👋

I'm not certain if it's currently possible with the node-cron module, but I would like to request a feature that enables retrieving the next running date and status of scheduled cron jobs. Additionally, it would be great to have the ability to name cron jobs for better identification and organization.

The purpose of this functionality is to facilitate the creation of an API endpoint that displays a page showing the status of cron jobs.

While it is feasible to manually store basic job statistics in a database, with nitro storage layer for example, and update them when a job runs, integrating this capability directly into the nuxt-scheduler module would greatly simplify the process and might be useful for someone else

Thank you for considering this feature request!

rohrig commented 1 year ago

I'll look into this @AzSiAz. Thanks for the suggestion. If you want to submit a PR I'd also be happy to have it. 🙂