Skip to main content

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

  1. Simple - uses python internal sched.py

  2. Stateless - don’t store state

  3. Allows intervals < 60 seconds

  4. 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"
    }

Release files for RQ-Cron 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for RQ-Cron 1.0.2
File Size Uploaded
RQ-Cron-1.0.2.tar.gz 2.8 kB Details

Release files / RQ-Cron-1.0.2.tar.gz

Download URL RQ-Cron-1.0.2.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c17a82d9e194814181bebd7ee040a4f1d09a8826462adcd10e70cf696993c5bd
BLAKE2b-256 checksum
How to use checksums
2b5bcf9f8f361902a1d88c21cb6f90502ddbc4ff9765534e35015c7c7e815a81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file

1.0.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page