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 simple usage

Start hoocron with redis plugin, configure --redis-job (--rj):

$ hoocron.py --rj 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 J in less then 1 second (default sleep period)

Other options

  --rj JOB [JOB ...], --redis-job JOB [JOB ...]
                        Jobs to bind with redis hook
  --redis REDIS_URL     Path to redis def: redis://localhost:6379/0
  --redis-list KEY      name of redis key to trigger jobs. def: hook

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.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file hoocron_plugin_redis-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: hoocron_plugin_redis-0.0.2-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

Hashes for hoocron_plugin_redis-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c2c667beec3d7e5c1fae1d2c473e3a636230f1371a5648aae3b3ebdb6e023ca9
MD5 23956c7aed618fe192f67f02bd8ed497
BLAKE2b-256 32d1e4b61d030a9b8141c16cbfb758c6b4a579bd7bc0062cd4eb2feef09317b4

See more details on using hashes here.

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