Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Distributed Cron Replacement

Project description

Introduction

Wikimedia Distributed Cron

Installation

To install just run:

sudo pip install megacron

or clone this repo and run:

sudo ./setup.py install

Usage

Set the location of the database file to a shared filesystem in /etc/megacron.conf then run:

sudo megacrond
sudo megacrontab

Commands

megacrontab - Gets any existing crontab entries and allows the user to add, modify or remove tasks using a standard text editor.

megacrond - Daemon that runs in the background and executes the jobs. This must run as root.

megacron-status - Prints out details about the current status.

Development

Clone this repo and run:

sudo ./setup.py develop
sudo cp megacron/conf/megacron.conf /etc/

To uninstall:

sudo ./setup.py develop --uninstall
sudo rm /etc/megacron.conf /usr/bin/megacron*

Testing

To run unit tests to verify expected api functionality:

sudo ./setup.py [-q] test [-v]

Note that the optional q flag is for quieting setup messages and the v flag is for verbose test output.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Megacron, version 0.4
Filename, size File type Python version Upload date Hashes
Filename, size Megacron-0.4.tar.gz (7.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page