rqworker timeout

I am using django-rq to handle some long-running tasks on my django site. These tasks trip the 180 second timeout of the (I assume) rqworker: JobTimeoutException: Job exceeded maximum timeout...

Where do I register an rq-scheduler job in a Django app?

I'd like to use django_rq and rq-scheduler for offline tasks, but I'm unsure of where to call rq-scheduler's ability to schedule repeating tasks. Right now, I've added my scheduling to a tasks.py...

How to clear Django RQ jobs from a queue?

I feel a bit stupid for asking, but it doesn't appear to be in the documentation for RQ. I have a 'failed' queue with thousands of items in it and I want to clear it using the Django admin...

Correctly reference django settings for django-rq on Heroku?

I'm trying to do some asynchronous processing on my django server with django-rq. After following the docs I've set my an environmental to: DJANGO_SETTINGS_MODULE=config.settings rqworker high...

How to pass Non-essential Built-in object as parameter in django-rq enqueue

Update: I found that I could not even pass a class in the enqueue, is this possible to do this? I want to pass a item object (a model in Django) as the parameter in...

404 error in django rest framework

When I am hitting http://127.0.0.1:8000/segment_address but I am getting 404 error: This is my urls.py from addFixAPI import views router =...

How to create multiple workers in Python-RQ?

We have recently forced to replace celery with RQ as it is simpler and celery was giving us too many problems. Now, we are not able to find a way to create multiple queues dynamically because we...

RQ AttributeError: 'module' object has no attribute

I am trying to create a background job with RQ: import django_rq def _send_password_reset_email_async(email): ...

Supervisord configuration for Django rq not working

I am following : Putting RQ under supervisor My job: @job("default") def send_mail(subject, body, sender, receivers, cc=None, bcc=None, content_type='plain', class_name=None): """Send email to...

RQScheduler on Heroku

I'm trying to run rqscheduler with django-rq on Heroku with RedisToGo. I've implemented django-rq as described in their readme (https://github.com/ui/django-rq). I have a worker that starts an...

model_unpickle() takes exactly 3 arguments (1 given)

I'm facing this error bellow with celery 3.1.25 and 4.1.0, this happen if I set serializing with pickle (I know is a problem with security) but I use a library that needs this kind of...

django-rq and rqscheduler deployment on AWS Elastic Beanstalk

I have a Django app that runs on the AWS EB environment. With recent updates, I had to integrate django-rq and rqscheduler for some queue-based background tasks. This all works fine on localhost...

the proper way to run django rq in docker microservices setup

I have somehow bad setup of my docker containers I guess. Because each time I run task from django I see in docker container output of ps aux that there is new process created of python mange.py...

Heroku RQ (Redis Queue) Django Error: "Apps aren't loaded yet."

I have a functional Django app that has many Google Text-To-Speech API calls and database reads/writes in my view. When testing locally it takes about 3 seconds to load a page, but when I deploy...

Concurrency within redis queue

I'm working with a django application hosted on heroku with redistogo addon:nano pack. I'm using rq, to execute tasks in the background - the tasks are initiated by online users. I've a constraint...

Error 404 not found raises 500 when Debug set to False

I recently tried to implement a custom view for my 404 and 500 errors on my website. It works well when debug is set to True, i.e. both the custom views work well when called. But as soon as set...

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...

Django post-office setup

Perhaps it is just because I've never set up an e-mail system on Django before, or maybe I'm missing it... but does anyone have any insight on how to properly configure django post-office for...

How can I get more information on Python unexpected SIGABRT?

I'm using: MacOS Catalina, version 10.15 (19A603). python 3.7.4 pip3 Running and Debugging the following Python code within venv: import jose print(jose) from jose import jwt token =...

redis-queue on Mac OS: process has forked and you cannot use this CoreFoundation functionality safely

I have a django app that makes use of rq queues. My setup was working fine on Ubuntu but my queue won't process any jobs on mac os (Catalina). Basically, I have my django app running with python...

HUEY alternative for rq.get_current_job()

We are migrating from rq, django-rq to HUEY for one of our Django project as rq is causing trouble running in Windows machine due to fork issue. There was a function in rq named get_current_job()...

Python rq.worker not honoring Django's LOGGING config

I am trying to run a standalone script outside of a Django app that interfaces with a Redis queue and uses the Python rq module. Everything is working fine but somewhere in either upgrading to...

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( ...

cannot import name 'UnpickleError' from rq.exceptions

I get an error when i run my image with docker-compose this is my pipfile with the library rq i try to up the image but i get an error in django-rq, but i not change this library i only add in my...

python - cryptography package - import error

I'm working in an Alpine docker container, I'm experiencing the following ImportError while starting a python shell: Traceback (most recent call last): File "manage.py", line 15, in <module> ...

JavaScript while loop + setInterval doesn't work in Django

I'm developing a website using Django. I have about 50 functions. And it takes about 1 minute to get the result for all of them. The problem is that I use heroku for my app. And heroku has a limit...

Building wheel for psycopg2 ... error pip3 install psycopg2?

When I'm running pip3 install -r requirements.txt then show me errors I show you bellow I'm using python version 3.8 PostgreSQL 13.0 (Ubuntu 13.0-1.pgdg20.04+1) see my requirement.txt files...

Django rq-scheduler: jobs in scheduler doesnt get executed

In my Heroku application I succesfully implemented background tasks. For this purpose I created a Queue object at the top of my views.py file and called queue.enqueue() in the appropriate...

What is the ideal number of workers in django-rq and python-rq?

I have a question regarding django-rq. It is pip-installed library that functions as a small layer on top of python-rq, which runs on a redis instance. Currently, I run all of the jobs on the...

Django-RQ having a hard time adding items to Django Model

I'm using django-rq to setup background tasks using Redis. Redis is working great and the code is sending the request to Redis - but it is throwing an exception. Exception: Traceback (most recent...