Skip to main content

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

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

Project details


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 hashes)

Uploaded Source

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