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

Uploaded Source

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

Hashes for RQ-Cron-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c17a82d9e194814181bebd7ee040a4f1d09a8826462adcd10e70cf696993c5bd
MD5 db9e5aa806225310fc39bc8c4ee401a9
BLAKE2b-256 2b5bcf9f8f361902a1d88c21cb6f90502ddbc4ff9765534e35015c7c7e815a81

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page