Skip to main content

Redis plugin for Hoocron

Project description

hoocron-plugin-redis

Redis support for Hoocron. Hoocron is cron with hooks.

Installation

pip3 install hoocron-plugin-redis

Example usage

Start hoocron with redis plugin:

$ hoocron.py -j J /bin/touch /tmp/touch --redis J

Loading hoocron_plugin.cron
Loading hoocron_plugin.http
Loading hoocron_plugin.redis
connect to redis over network: localhost:6379
started redis thread, watch list 'hook'

Now send hook name to list 'hook' (we will use redis-cli for this):

127.0.0.1:6379> LPUSH hook J
(integer) 1

hoocron will run job J in less then 1 second (default sleep period)

Other options

Use hoocron.py -h to see options

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

hoocron_plugin_redis-0.0.1-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page