Open frndmg opened 5 years ago
This pull request is preparation for storing schedule inside external storage: https://github.com/robfig/cron/pull/251
I think this is possible today by creating a custom JobWrapper that records this information for each execution. You can include it using cron.WithChain when creating your cron instance
It could be useful to store the history of executed (or failed tasks) into persistent storage (SQLite, etc). For example, to restore previously broken tasks. Or just to automatically keep an eye on previously executed tasks.