https://github.com/mattn/backoff
backoff utility for cron
https://github.com/mattn/backoff
backoff cron crontab
Last synced: 6 months ago
JSON representation
backoff utility for cron
- Host: GitHub
- URL: https://github.com/mattn/backoff
- Owner: mattn
- Created: 2023-12-23T13:26:26.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-29T04:44:14.000Z (about 2 years ago)
- Last Synced: 2025-04-30T20:23:53.379Z (9 months ago)
- Topics: backoff, cron, crontab
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 32
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# backoff
backoff utility for cron. cron can periodically execute commands at specified intervals, but an email is sent to the cron administrator each time a command repeatedly fails. In the worst case, API calls may be banned by the web service, e.g. If you repeatedly access to web service that is under maintenance. This tool extends the interval until the next start-up according to the number of consecutive failures and suppresses the sending of annoying emails.
## Usage
```
* * * * * /path/to/the/command
```
This cron job executes the command per one minutes. next execute should be after 1 minute eventhough if the command fails.
```
* * * * * backoff /path/to/the/command
```
This cron job executes the command per one minutes. If the command fails, next execute should be after 2 minute, 4 minute, 8 minute...
## Installation
```
$ go install github.com/mattn/backoff@latest
```
## License
MIT
## Author
Yasuhiro Matsumoto (a.k.a. mattn)