A Cron-like timer for AMQP
Switch branches/tags
Nothing to show
Pull request Compare This branch is 7 commits behind philipcristiano:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
metranome
tests
.gitignore
MANIFEST.in
Makefile
README.md
requirements.txt
setup.cfg
setup.py

README.md

Metranome

Metranome is a timer for AMQP systems, like a metronome. It exists to replace using Cron to signal starting a task.

Cron works well for single servers although becomes more difficult to manage when multiple computers and processes are used. Metranome allows you to have a single signal to begin a task.

Using Metranome

Metranome will publish an event every minute. Listeners can bind to the topic exchange metranome with the routing key matching the year.month.day_of_week_int.day.hour.minute.

day_of_week_int is 0-6, Monday-Sunday.

If you want a task to run every minute bind to: *.*.*.*.*.*.

If you want a task to run every hour bind to: *.*.*.*.*.0.

If you want a task to run every 5 minutes bind to:

*.*.*.*.*.0
*.*.*.*.*.5
*.*.*.*.*.10

...

*.*.*.*.*.55