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
File details
Details for the file hoocron_plugin_redis-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: hoocron_plugin_redis-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61e7f53e1a96ac06b016a0491d952919e60a5b0f83bb2a5a39a3808c432b10e9 |
|
MD5 | 5de96aeaebcbc0951015fb49e184aff1 |
|
BLAKE2b-256 | b2deee5fc63d3a2604dee4c3350fb0639c20cd313f8c24e77aca8cc864c332dc |