building a crontab to start jobs in hourly batches (administrators one-stop-shopping)

Category: Python - Miscellaneous

Task: Administrative job to run in my case 2300 jobs in a scheduled manner
Restriction: Don't start two jobs at same schedule on same server

Problems to solve that for:
* align list of projects into batch of jobs with distinct servers
* templated job creation
* create a crontab
* to start all this jobs from a starting schedule every hour
* respect some restrictions that on some days and some hours no jobs should be started

Thanks to builtin map() and standard-library time, datetime and timedelta to make that an ease at the end! Date: 24 February, 2012


Sysadmin

Homepage: http://code.activestate.com/recipes/521870-building-a-crontab-to-start-jobs-in-hourly-batches/?in=lang-python

Developer: Peter Arwanitis

License: Python License

Operating System: Windows

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

Internet Billing Wizard 1.

developer Developer: http://tekmanproductions...
license License: Freeware
operating systems Operating System: Unix


Calculates IOPS for all disks in Linux/Unix system.

developer Developer: Slava Yanson
license License: Freeware
operating systems Operating System: Windows


RSH sometimes hangs if it cannot resolve to a given host.

developer Developer: Shrinidhi Rao
license License: Freeware
operating systems Operating System: Windows


System administrators sometimes need to automate commands which prompt for a password (or any other single prompt) before they execute.

developer Developer: John Landahl
license License: Python License
operating systems Operating System: Windows


Takes a stream of numbers and outputs simple ASCII graphs of those numbers.

developer Developer: Drew Gulino
license License: Freeware
operating systems Operating System: Windows


A Python script that runs arbitrary Python scripts in an input loop.

developer Developer: Drew Gulino
license License: Freeware
operating systems Operating System: Windows


LoggingWebMonitor listens for log records sent from other processes running in the same box or network.

developer Developer: Gabriel Genellina
license License: Freeware
operating systems Operating System: Windows


Monitor sets for changes using the Observer design pattern.

developer Developer: Raymond Hettinger
license License: Python License
operating systems Operating System: Windows


parse profile information from a myspace.

developer Developer: bernd essl
license License: Python License
operating systems Operating System: Windows