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 simple usage
Start hoocron with redis plugin, configure --redis
:
$ hoocron.py --redis TICK
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 TICK
(integer) 1
hoocron will run job TICK
in less then 1 second (default sleep period)
Other options
--redis JOB [JOB ...]
Jobs to bind with redis hook
--redis-url REDIS_URL Path to redis def: redis://localhost:6379/0
--redis-list KEY name of redis key to trigger jobs. def: hook
--redis-url
could be set from environment variable REDIS_URL
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.4-py3-none-any.whl
.
File metadata
- Download URL: hoocron_plugin_redis-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e9006f3effd45984ee51582e3b8594367540bebcc446c375aad69e978a5fd17 |
|
MD5 | ce5a733c9ba3450cb089309a24061341 |
|
BLAKE2b-256 | c8e3ce81bece5476404c77441a0e73ec87b928349630a8b7e21ac9ab9aafdcfe |