Giter Club home page Giter Club logo

goscheduler's Introduction

goScheduler

When you would use this scheduler instead of cron

You would use this scheduler on a team machine where the system administrators have prevented the use of cron. Valid reasons why they prevent the use of cron include:

  • Jobs overlapping.
  • Dataset that job processes becomes too large.
  • Limits to the number of open file descriptors, threads and memory usage on a machine
  • Other race condition problems since users assume the entire system's resources are at their disposal.

Beware: Due to above reasons, use this simple scheduler at your own risk as you could get in trouble with system administrators! I personally used it to refresh application data where the dataset was small and posed no risks.

Configuration

$ git clone [email protected]:chentda/goScheduler.git && cd goscheduler/config/
$ vim example.toml # fill out name of bash script and time you want to schedule it to run
$ mv example.toml ../config.toml 

To Test

$ make run

To Run As Binary

You would normally run this in a terminal multiplexer like tmux or screen

$ make compile
$ ./goScheduler # goScheduler is the name of the executable - could be different for you if you change it in the Makefile

Limitations

  • Only schedules bash scripts, so if you need to run something else like a python script, just called it in the bash script.
  • Only schedules 1 bash script currently, so you will have to duplicate the executable if you want to run multiple bash scripts.
  • Only runs Mon-Fri.

goscheduler's People

Contributors

chentda avatar

Watchers

 avatar

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.