codnect / chrono

Chrono is a scheduler library that lets you run your task and code periodically

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Query next task time

ted537 opened this issue · comments

I would like to be able to output something like "Processed data succesfully. Will process again at _____." Could the scheduler support querying when the next task is scheduled for?

This gets awkward because we don't know when the next execution will begin until the current execution has ended, so we can't just cheekily sneak this functionality into an existing task.

I've found that robfig's cron package has suited my needs for this, as they make the simpler assumption that all tasks are scheduled based on rate, not delay.