Skip to main content

An administrative interface for managing RQ tasks in Paper Admin

Project description

paper-rq

An administrative interface for managing RQ tasks in Paper Admin.

PyPI Build Status Software license

Compatibility

Installation

Install the latest release with pip:

pip install paper-rq

Add paper_rq to your INSTALLED_APPS in django's settings.py:

INSTALLED_APPS = (
    # ...
    "paper_rq",
)

Add paper_rq to your PAPER_MENU:

PAPER_MENU = [
    # ...
    dict(
        app="paper_rq",
        icon="fa fa-fw fa-lg fa-clock-o",
    ),
    # ...
]

Result

4d17958f25.png

RQ Scheduler

First you need to make sure you have the rq-scheduler library installed:

pip install rq-scheduler

If you need to run multiple isolated schedulers, you can use the class paper_rq.scheduler.Scheduler. It reads the Redis keys from the RQ setting:

# settings.py

RQ = {
    "SCHEDULER_CLASS": "paper_rq.scheduler.Scheduler",
    "SCHEDULER_LOCK_KEY": "rq:scheduler-1:scheduler_lock",
    "SCHEDULER_JOBS_KEY": "rq:scheduler-1:scheduled_jobs",
}

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

paper-rq-0.5.8.tar.gz (16.1 kB view hashes)

Uploaded Source

Built Distribution

paper_rq-0.5.8-py2.py3-none-any.whl (22.3 kB view hashes)

Uploaded Python 2 Python 3

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