Giter Site home page Giter Site logo

Comments (7)

crustymonkey avatar crustymonkey commented on July 17, 2024

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.

 avatar commented on July 17, 2024

yup. exponential would be even better.

from cron-wrap.

crustymonkey avatar crustymonkey commented on July 17, 2024

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.

 avatar commented on July 17, 2024

awesome :-) thanks !

from cron-wrap.

 avatar commented on July 17, 2024

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.

crustymonkey avatar crustymonkey commented on July 17, 2024

That's odd. I tested pretty much every combination I could for that. I'll take a look and reopen this.

from cron-wrap.

crustymonkey avatar crustymonkey commented on July 17, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.