RQ Cron
Project description
RQ-Cron
RQ Cron is a cron-like daemon, which can schedule tasks
Requirements
Installation
pip install RQ-Cron
Usage
rq-cron –config /etc/rq_cron.json
Benefits
Simple - uses python internal sched.py
Stateless - don’t store state
Allows intervals < 60 seconds
Saves task execution time in files for monitoring
Example config
Example:
{
"jobs" : [
{
"queue": "queue1",
"name" : "module1.task1",
"interval" : 60
},
{
"interval" : 60,
"queue": "queue2",
"name" : "module2.task1"
},
{
"cron" : "32 */3 * * *",
"name" : "module3.task1",
"kwargs": {
"timeout": 30
}
}
],
"status_dir" : "/tmp/rq_cron_status",
"default_queue": "queue",
"redis" : "localhost"
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
RQ-Cron-1.0.2.tar.gz
(2.8 kB
view details)
File details
Details for the file RQ-Cron-1.0.2.tar.gz.
File metadata
- Download URL: RQ-Cron-1.0.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c17a82d9e194814181bebd7ee040a4f1d09a8826462adcd10e70cf696993c5bd
|
|
| MD5 |
db9e5aa806225310fc39bc8c4ee401a9
|
|
| BLAKE2b-256 |
2b5bcf9f8f361902a1d88c21cb6f90502ddbc4ff9765534e35015c7c7e815a81
|