Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First pass at a working version of the script.
- Loading branch information
Jason Heiss
committed
Sep 27, 2010
1 parent
8d97d5d
commit 2bde929
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
This is a wrapper for cron jobs which implements common housekeeping tasks. | ||
|
||
- Failure suppression | ||
- Overlap protection | ||
|
||
Failure Suppression | ||
------------------- | ||
|
||
If enabled cronwrap will suppress non-zero exit values and output unless the | ||
job exceeds the specified number of consecutive failures. This is useful for | ||
jobs that might fail occasionally due to extenuating circumstances but for | ||
which the occasional failure is not a big deal as long as it the job starts | ||
running successfully again soon. | ||
|
||
Overlap Protection | ||
------------------ | ||
|
||
If enabled cronwrap will not start multiple simultaneous copies of job. For | ||
example, you have a job that runs once an hour and usually completes in a | ||
minute. However, there's a chance it will get stuck and take more than an hour | ||
or even hang forever. You might not want cron to start another copy of the job | ||
while the previous job is still running. | ||
|