GithubHelp home page GithubHelp logo

arch199 / crontrack Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 578 KB

An open-source Django app for keeping track of Cron jobs.

Home Page: https://crontrack.com

Python 51.14% CSS 10.96% HTML 35.04% JavaScript 2.87%

crontrack's People

Stargazers

 avatar  avatar

Forkers

dbreen

crontrack's Issues

Infinite(ish) loop causing 100% CPU usage

Running the startmonitor command causes the CPU to spike due to this:

Should be easy to reproduce.

Since we're calling the startmonitor command from the command line (or cron), there's no need for any threading, since its own thread is already specifically just for this task. When running the monitor in tandem with the runserver command it made sense, but that wouldn't be recommended for production. It can be convenient while developing so that you don't need to run a separate command, but it should probably be disabled unless in DEBUG mode (or removed entirely for consistency with prod).

Regression in alerts - mutiple notifications for dead jobs (Potential escalation mechanism?)

I've got a test job to run every 5 minutes w/ a 10 minute notification window, and when I purposely skip notifications, I correctly get notified after 15 minutes, but then it re-sends an alert each 15 minutes. Dead jobs should only alert once, unless they come back alive and go dead again.

Potentially we could have an escalation mechanism so that it would send one alert at first, but then we could configure a second or third notification if it goes X more time periods without acknowledgement. Escalation could start sending to other email addresses or text messages after reaching certain thresholds. Would have to flesh out details on how this could work.

Logic error in notification calcs

I set up a task to run every minute (* * * * *), with a time window of 5 mins. I am pinging it each minute, but I get an alert every 5 minutes. The next_run doesn't get updated until it fails, so I think that value needs to get recalculated each time a notification happens.

Ability to reset cron job status

Could be useful to have a button or action somewhere to "reset" a job, clearing its notification/failed times. When editing a job, it would be good to have "Save" and "Save & Reset", so if you're changing the cron window, you can easily reset it.

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.