Django integration with RQ, a Redis based Python queuing library. Django-RQ is a simple app that allows you to configure your queues in django's settings.py and easily use them in your project.
Questions tagged [django-rq]
62 questions
1
vote
1 answer
Starting rqworker using supervisor causes spawn error
Trying to start rqworker as stated in its README using this command:
python manage.py rqworker default
For some reason it gives ERROR (spawn error) and status shows FATAL Exited too quickly (process log may have details). Logs has no any…

Emin Mastizada
- 1,375
- 2
- 15
- 30
1
vote
1 answer
django_rq jobs are not added to the queue
I am using:
django-rq: 0.9.6
rq_scheduler: 0.6.1
I am fairly new to docker and django_rq.
The issue that I am having is, my jobs are not executing or getting in the queue.
docker-compose.yml
redis:
container_name: projapi-redis
restart:…

Randy Collier
- 136
- 1
- 1
- 11
1
vote
2 answers
rq enqueue function: fails with TypeError:function_xxx() takes 2 positional arguments but 3 were given
This is bugging me for past few hours and I can not seem to find a solution yet.
I am using django-rq to enqueue some long running tasks. In my tasks.py, I have the following:
from django_rq import job
@job
def long_running_task(hash, url,…

Subzero
- 841
- 6
- 20
1
vote
0 answers
Django dictionary from env settings issue or django_rq issue?
I'm facing a strange behavior when trying to create Django_rq queues configuration dynamically from an environment variable.
my env var is :
CUSTOM_QUEUES=default:q1:q2
into my settings.py I have:
from getenv import env
# Cache
CACHES_DEFAULT =…

Lessfoe
- 73
- 1
- 1
- 6
1
vote
1 answer
Django rq to do batch db insert
How can I enqueue a function which will run a long time?
I want to do the following:
def batch_insert(data):
rows.append(MyModel(*data))
if len(rows) > 1000:
MyModel.objects.bulk_create(rows)

user3599803
- 6,435
- 17
- 69
- 130
0
votes
0 answers
OneSignal, Pickle and Django rq jobs not configured correctly
I am trying to get notifications set up with onesignal through the use of Django rq jobs and pickle but it doesn't seem to be working. Do you know what could possibly be the problem?
I used this below code
to import pickle
pickle.HIGHEST_PROTOCOL…

Frank Castle
- 335
- 3
- 23
0
votes
0 answers
Upgrading Redis to 7.0.11 results in TypeError at /login/ __init__() got an unexpected keyword argument 'ssl_cert_reqs'
We use redis with django-rq to manage queues on our project. Heroku has recently forced upgrades to Redis 7.0.11 and that requires TLS. Per their docs we need to set 'ssl_cert_reqs'=None in order to make sure redis is using TLS but not looking for a…

betsy_roth
- 1
- 1
0
votes
0 answers
Django RQ Worker job enqueue after video uploaded fully (chunk upload)
I want to give the signal after the video has fully uploaded, i tried with delays but the time varies conform the upload speed
Here is the model:
class Post(models.Model):
author = models.ForeignKey(User, on_delete=models.CASCADE, null=True)
title =…

MrLonely
- 23
- 1
- 5
0
votes
1 answer
Django-RQ API_TOKEN configuration to access to stats endpoint
I'm trying to retrieve some statistics from the django-rq queues and I'm having some difficulties to access to the provided URL from the Django-Rq documentation
These statistics are also available in JSON format via /django-rq/stats.json, which is…

afinkado
- 21
- 6
0
votes
0 answers
Test email does not arrive in mail.outbox when sent by Django-RQ worker
I've set up a test within Django that sends an email, in the background, using Django-RQ.
I call the code that enqueues the send_email task, then, I get the django-rq worker, and call .work(), with burst=True.
In my console, I can see the django-rq…

Scratcha
- 1,359
- 1
- 14
- 22
0
votes
1 answer
Is it possible to enqueue an instance method, as opposed to a function, using Python-RQ?
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…

Scratcha
- 1,359
- 1
- 14
- 22
0
votes
0 answers
django-rq-scheduler not printing information on console window
I am referring to the official documentation from here.
Here is my code:
Directory Structure:
settings.py file
app1/jobs.py file
Scheduled job in django-admin panel (time is 2 minutes after the current time)
Issue
I am expecting some…

Josal
- 336
- 1
- 10
0
votes
0 answers
Django generate thumbnail from video, but it encodes it
Im using django-video-encoding this and django-rq to generate a thumbnail but instead it generates another video AND it makes it smaller(in size)
here is signals.py:
`
from django.db.models.signals import post_save
from django.dispatch import…

MrLonely
- 23
- 1
- 5
0
votes
0 answers
Lazy page loading via Redis in Django project
There is a download page for about 5000 sql queries against a database (Postrgres). The team decided to apply the following algorithm to avoid 502 errors when multiple users load the page at the same time (using Redis):
Create a task for an…

emildzy
- 11
- 1
0
votes
0 answers
Django EmailMessage return error in django_rq task
I am trying to make a simple mail sending service with django. Without the use of the queue everything works fine, but as soon as I add the use of django_rq an error occurs at the time of executing msg.send()
class…

Kabiljan Tanaguzov
- 313
- 1
- 7