Open joeblew99 opened 8 years ago
Hi @joeblew99! I have some questions about your suggestions
A retry functionality would be highly appreciated. In my case I have an API which I want to query every five minutes. Sometimes the query fails. In this case I would like to retry the query automatically. Integrating this into gocron would greatly reduce the complexity of error handling since I don't need to implement the retry handling for every task myself.
Here's how it could look like:
gocron.Every(5).Minute().Do(query).Retry(3)
One could add the option to wait between retries. This is commonly referred to as "backoff". Example:
// Retry after 1, 2 and 4 seconds
gocron.Every(5).Minute().Do(query).Retry(3).Backoff(gocron.Backoff.exponential)
Other schedulers like ticktock (seems to be unmaintained) provide this functionality.
This is working fine for me.
I was wondering , since its a newish project if you are thinking about a roadmap or suggestions :
Thanks in advance.