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
0
votes
1 answer
Supervisord exits inside Docker container when run with docker-compose 'command:', but not when its run from bash
I'm trying to run DjangoRQ workers inside a docker container - a simple 'worker' container which I will run on a digital ocean droplet. I'm using supervisord to run multiple workers.
Supervisord will run if I set the container command to sleep 3600…

phil0s0pher
- 231
- 1
- 4
- 16
0
votes
1 answer
Background workers and overriding save method on Django models
I have a long-running process that depends on model fields.
Let's say I have a model that looks like this
class Client(models.Model):
input_data = models.CharField(max_length=100)
# The field that will be computed in the background task
…

Abod
- 58
- 1
- 7
0
votes
1 answer
Send an email after some time (24hours) in django using django_rq
I have a website where user profile has multiple steps of registry.
I would like to send the user an email if the user has completed step 1 but not step 2, 24 hours later than completing step 1.
So, after the completion of step 1 I would like to set…

moddayjob
- 606
- 5
- 17
0
votes
1 answer
python-rq scheduler count the number of times job executed
I'm using Django-rq which has the functionality of Scheduling the jobs with specified interval.
https://github.com/rq/django-rq#support-for-rq-scheduler
task = scheduler.schedule(
scheduled_time=datetime.utcnow(), # Time for first execution, in…

Arbazz Hussain
- 1,622
- 2
- 15
- 41
0
votes
0 answers
How to use Supervisord on Heroku?
I am trying to use Django-RQ with Supervisord on Heroku. I think I need to keep a script in the /etc/systemd/system directory so that it can automatically start at system startup, but I'm not sure how this would translate to Heroku
I'm using Heroku…

Ronnie
- 992
- 1
- 9
- 25
0
votes
1 answer
django-rq Redis Client sent AUTH, but no password is set
I had my django-rq working a few days ago, but I restarted my computer and now it's not working. I can confirm redis is running with:
brew services start redis
Here is what I try to run to start redis:
python manage.py rqworker
And here is the…

superdee
- 637
- 10
- 23
0
votes
0 answers
How to use Django-RQ in a class based ListView?
I can't figure out how to use Django-RQ in a sample queryset:
class PartnerCatalogueView(generic.ListView):
"""
Browse all products in the catalogue
"""
template_name = 'catalogue/partner.html'
paginate_by = 9
model =…

takeiteasy
- 61
- 7
0
votes
1 answer
rq queue always empty
I'm using django-rq in my project.
What I want to achieve:
I have a first view that loads a template where an image is acquired from webcam and saved on my pc. Then, the view calls a second view, where an asynchronous task to process the image is…

Caterina
- 27
- 6
0
votes
0 answers
django: where to trigger workers after form submit
I've written some piece of code I want to run using django-rq, i.e. use workers.
I created a form where the user can chose several objects and press a button to start the operation.
for this purpose I have in my views.py:
class…

Mika R
- 105
- 1
- 7
0
votes
0 answers
Python Django + RQ: job is executing but skipping all if/elif blocks
I'm at a loss as to what is happening here. I have a simple django web site where I log in and fill out a basic form with some information (device address, electrical socket 1/2, on/off). When I submit the form, RQ submits this task (which uses…

0xDECAFBAD
- 154
- 1
- 10
0
votes
1 answer
Django-RQ + Braintree: Submit for settlement
I have read this stackoverflow Q&A but it did not worked it my case.
In my scenario I push a function (submit_transaction_for_settlement(transaction_id)) to the redis queue using the excellent package django-rq. The job of this function is to submit…

nik_m
- 11,825
- 4
- 43
- 57
0
votes
1 answer
Django rq scheduler can not enqueue same task twice
I am using rq scheduler. I want to remind users to verify their email after 2 mins and 10 mins. So I use post_save signal to schedule these tasks. I have set up task like this:
from datetime import timedelta
import django_rq
def…

Kishan Mehta
- 2,598
- 5
- 39
- 61
0
votes
1 answer
scheduling an async email job fails with error SMTPAuthenticationError: (535, '5.7.3 Authentication unsuccessful')
I'm trying to schedule an asynchronous email job.
I'm using django-rq as the queueing mechanism. I've tried numerous fixes such as changing the password, ensuring that it's correct etc. I can manually sending SMTP via REPL.
Update #1: the settings…

AndrewO
- 1,105
- 4
- 16
- 33
0
votes
1 answer
How do I set up Haystack's QueuedSignalProcessor to use Redis?
I have a project which I would like to migrate from using Haystack's queued_search library, using Redis as the Queue backend. Before this point, everything was working great with Haystack and Django, I'm just having trouble changing the signal…

ninapavlich
- 739
- 2
- 10
- 30
0
votes
3 answers
Placement of standalone script and using django_rq
I need to create a standalone script which accesses the database, fetches data from a table and processes it and stores it into another table. I am also using django-rq in order to run this script.
Where should place this script in django project…

blackmamba
- 1,952
- 11
- 34
- 59