python-rq

Is it possible to enqueue an instance method, as opposed to a function, using Python-RQ?

Is it possible to enqueue an instance method, as opposed to a function, using Python-RQ? Question: The examples provided in the Python-RQ documentation consistently show functions being enqueued, using queue.enqueue(). For example: job = q.enqueue(count_words_at_url, ‘http://nvie.com’) Is it possible to enqueue a method of a particular object instance? And if so, is this considered reasonable …

Total answers: 1

Executing an awaitable / async function in Python RQ

Executing an awaitable / async function in Python RQ Question: My jobs are all a series of requests that need to be made per object. Ie, its a User with several data points (potentially hundreds) that need to be added to that user with requests. I had originally written those requests to run synchronously but …

Total answers: 3

python-rq worker not reading jobs in queue

python-rq worker not reading jobs in queue Question: I’m facing a basic issue while setting up python-rq – the rqworker doesn’t seem to recognize jobs that are pushed to the queue it’s listening on. Everything is run inside virtualenv I have the following code: from redis import Redis from rq import Queue from rq.registry import …

Total answers: 2

RQ – Empty & Delete Queues

RQ – Empty & Delete Queues Question: I’m using RQ, and I have a failed queue with thousands of items, and another test queue I created a while back for testing which is now empty and unused. I’m wondering how to remove all jobs from the failed queue, and delete the test queue altogether? Apologies …

Total answers: 8

Pros and cons to use Celery vs. RQ

Pros and cons to use Celery vs. RQ Question: Currently I’m working on python project that requires implement some background jobs (mostly for email sending and heavily database updates). I use Redis for task broker. So in this point I have two candidates: Celery and RQ. I had some experience with these job queues, but …

Total answers: 2