Comments (7)
Yep, 1240 emails are never desired. The problem that cron-wrap solves isn't one of scheduling here, but rather one of notifications. I think it would make a lot of sense to add an option for exponential backoffs, and I can definitely make that happen. That way you wouldn't have the spam problem, which is one of the main things that cron-wrap was written to solve.
from cron-wrap.
yup. exponential would be even better.
from cron-wrap.
I've added a -b option which will exponentially back off the notifications. Grab version 0.6.0 (or clone the latest on master) for the addition.
from cron-wrap.
awesome :-) thanks !
from cron-wrap.
I'm using /usr/bin/cwrap.py -b -n 5 -t 30 but i'm now getting emails for every fail (one per minute).
I'm guessing one of -n, -b, or -t has cancelled the effect of the others out.
from cron-wrap.
That's odd. I tested pretty much every combination I could for that. I'll take a look and reopen this.
from cron-wrap.
I figured this one out. There was a new instance variable added to the state instance, which gets serialized and saved to disk to save state between runs. Well, since it's saving an already instantiated instance to disk, when it unserializes it, it doesn't call init() and initialize the new variable. Therefore, it would throw a python error every time it runs trying to access a variable that didn't exist.
I added an upgrade method that can handle these for this case, and in the future.
You can also delete the old state files to fix this, but the 0.6.1 version should just handle the upgrade automatically now.
from cron-wrap.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cron-wrap.