You are here: Home / LBN / Up2date / Core Linux / BastionLinux 36 / python3-rq-1.16.2-1.lbn36.noarch

python3-rq-1.16.2-1.lbn36.noarch

Package Attributes
RPM  python3-rq-1.16.2-1.lbn36.noarch.rpm Architecture  noarch Size  717252 Created  2024/07/01 13:33:36 UTC
Package Specification
Summary RQ is a simple, lightweight, library for creating background jobs, and processing them.
Group Unspecified
License ZPL
Home Page https://pypi.org/project/rq
Description

RQ (Redis Queue) is a simple Python library for queueing jobs and processing them in the background with workers. It is backed by Redis and it is designed to have a low barrier to entry. It should be integrated in your web stack easily. RQ requires Redis >= 3.0.0.

Full documentation can be found here. Support RQ If you find RQ useful, please consider supporting this project via Tidelift. Getting started First, run a Redis server, of course: $ redis-server

To put jobs on queues, you don't have to do anything special, just define your typically lengthy or blocking function: import requests

def count_words_at_url(url): """Just an example function that's called async.""" resp = requests.get(url) return len(resp.text.split())

You do use the excellent requests package, don't you? Then, create an RQ queue: from redis import Redis from rq import Queue

queue = Queue(connection=Redis())

And enqueue the function call: from my_module import count_words_at_url job = queue.enq

Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PayloadIsZstd)  
/usr/bin/python3  
rpmlib(CompressedFileNames)  
rpmlib(PartialHardlinkSets)  
rpmlib(FileDigests)  
Provides
python-rq
python3-rq
python3.10-rq
python3.10dist(rq)
python3dist(rq)
Obsoletes
python-rq

Document Actions