Slashdot Mirror


Better Scheduler Than Cron?

Chanc_Gorkon asks: "I am looking for an open source job scheduler that is better than cron. I need a scheduler that has dependency checking, preemption (to stop jobs that access the same resources from running at the same time) and -full- logging. Cron e-mails are nice, but I usually end up cleaning them out with out reading. E-mailing the sysadmin -only- when a job does not get kicked off would be the preferable option. I have scoured Freshmeat and Sourceforge and have found nothing that comes close to what I am looking for. Do you guys have some options for me?"

7 of 66 comments (clear)

  1. launchd by Anonymous Coward · · Score: 5, Informative

    Have you looked at launchd, the new all-purpose task control daemon? Don't be put off by the fact that it's from Apple--it's open source, licensed under the APSL, which I believe is GPL-compatible, if you care about that kind of thing. It seems to offer many of the features you want, including task scheduling, preemption control, etc.

    Here's the manpage; here's a tutorial (geared towards OS X developers, unfortunately), and here's John Siracusa's overview of launchd from Ars Technica.

    1. Re:launchd by DanThe1Man · · Score: 5, Informative
    2. Re:launchd by kalidasa · · Score: 4, Informative

      Somebody mod parent and grandparent up : both are informative. The ars technica article linked in the /. posting above (http://arstechnica.com/reviews/os/macosx-10.4.ars /5) is a great introduction to what launchd is.

  2. Write some scripts by Jepler · · Score: 5, Informative

    You identified some elements that could be written as simple unix scripts.

    Serializing cron jobs that access some resource? Use "lockfile". Wrap it with something that claims the necessary locks in the right order, runs the real script, and then removes all the locks.

    Only producing output in the case of an error? Write a script that saves output to a temporary file, and then cats the file if the exit value is not "success".

    These should both be pretty basic tasks that can be done in shell, python, or perl. And you can take them with you t

  3. Similiar question by Asgard · · Score: 2, Informative

    I asked a similar question here: Open Source Batch Management

  4. Options by tpv · · Score: 3, Informative
    --
    Read more of this story at Slashdot.Read more of this story at Slashdot.Read more of this story at Slashdot.
  5. Re:Cron by Goo.cc · · Score: 2, Informative

    And check out this beatiful crontab from the Gentoo forums:

    What's In Your Crontab?