Docker image of rq-scheduler.
docker run -d quay.io/humu/rq-scheduler \
-e RQ_REDIS_URL=http://redis.example.com:6379 \
-e INTERVAL=30
/sbin/my_init
The following environment variables are supported. See rq-scheduler doc and code for details:
INTERVAL
- how often scheduler checks for jobs in float seconds, default: 60RQ_REDIS_HOST
- redis host (only ifRQ_REDIS_URL
not set)RQ_REDIS_PORT
- redis port (only ifRQ_REDIS_URL
not set)RQ_REDIS_DB
- redis database numberRQ_REDIS_PASSWORD
- redis passwordRQ_REDIS_URL
- full URL of redis (in lieu ofREDIS_HOST
andREDIS_PORT
)OPTIONS
- other options passed to rq-scheduler (e.g., set to --verbose for debugging)