Mark G
Mark G10mo ago

Is there a way to obtain Deno.cron schedule info?

Deploy lists the registered cron jobs with name, schedule, last run and next run. Is there a programatic way to obtain this information, in both cli and deploy Deno?
3 Replies
Mark G
Mark GOP10mo ago
Alternatively, is there a recommended way to calculate the next run based on the schedule data that Deno.cron accepts (ie. either the raw string or object)?
Deno AI Helper
Deno AI Helper10mo ago
I wasn't able to find the answer to your question in the official Deno documentation. However, based on your message, it seems like you're looking for a way to programmatically access cron job information in Deno, including details such as the job name, schedule, last run, and next run. As of my knowledge cutoff date, Deno does not have a built-in Deno.cron API or similar functionality that would allow you to directly obtain cron schedule information. Cron job scheduling and management is typically handled by external tools or services, and Deno's standard library does not include a module for cron job management. If you're using a third-party library or service for scheduling cron jobs in Deno, you would need to refer to that specific library's or service's documentation to see if they provide a way to programmatically access the cron job information you're looking for. Please note that this advice is not based on the Deno documentation, and I recommend double-checking the accuracy of this advice and consulting the documentation or community resources for the specific tools or services you are using for cron job management.
cknight
cknight10mo ago
I don't think there's anything locally. For Deploy you could hook into their unofficial API: https://dash.deno.com/projects/your-deploy-project-name/cron?_data_ using token=<your_deno_api_token> cookie.

Did you find this page helpful?