Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
39 views

In Miguel Grinberg's Flask Mega-Tutorial, chapter 22, he creates a generic launch_task method as a part of the User object model. His tutorial uses rq and I am trying to do something similar with ...
setty's user avatar
  • 487
0 votes
1 answer
118 views

I think that the architecture of RQ Scheduler is fundamentally flawed and it's much more complicated than it needs to be. Schedules are stored in Redis Even if you remove or modify your scheduling ...
demux's user avatar
  • 4,674
1 vote
0 answers
250 views

I'm using FastAPI with Redis and RQ for background task processing. When I try to start the RQ worker using the following command: rq worker --url <my redis url> task_queue I receive the ...
Prashant Singh's user avatar
0 votes
0 answers
129 views

I'm working on integrating a set of microservices into our application, focusing on a FastAPI server that interacts with Redis through RQ for task queueing. The setup involves three main files: ...
Huseyn's user avatar
  • 49
1 vote
0 answers
56 views

I have the following code: @job def create_model(): test_text = "Text1" TestModel.objects.create(test_text=test_text) print("Done!") def test_view(request): ...
Ivan's user avatar
  • 33
0 votes
0 answers
83 views

I'm tryng to set up a redis server in order to run a simple task through RQ I start a RQ worker from the VSC terminal, then open a new terminal, kick in a py shell session and type the following: >&...
edu's user avatar
  • 1
1 vote
2 answers
564 views

I've have a fastapi server and I want to implement background task using Redis and RQ. I've created FASTAPI_SERVER, REDIS_SERVER and WORKER_SERVER in docker-compose. Here is what my fastapi code looks ...
Ashish Kumar Jha's user avatar
0 votes
0 answers
41 views

What is more preferable way to process .csv files using RQ? File possible can have few or few hundred thousands rows def process_row(): pass # Is it better to push function per csv row as a job. ...
0x2328's user avatar
  • 1
0 votes
1 answer
522 views

rq-dashboard works from the command line, but not integrated into flask. The simple example from github from flask import Flask import rq_dashboard app = Flask(__name__) app.config.from_object(...
jgm_GIS's user avatar
  • 225
0 votes
0 answers
161 views

I am new to python Rq and I am trying to understand his usage in FastApi. Why it would be better to use a Rq job instead a normal api call? In other words, why it would be better to do: @app.post('/') ...
NicWorkAccount's user avatar
0 votes
1 answer
799 views

I am using Python with RQ to manage jobs. Occasionally a job will fail for a variety of reasons, usually either insufficient memory or timeout. I would like to have these jobs retried but with more ...
cary's user avatar
  • 31
2 votes
2 answers
1k views

I have defined the rq task on module task.py as: import django_rq import logging import requests log = logging.getLogger(__name__) def req_call(): url = 'https://jsonplaceholder.typicode.com/...
Ramchandra Shahi Thakuri's user avatar
0 votes
1 answer
546 views

My Heroku app uses Redis and an rq worker. I recently enabled SSL on my Heroku app via the dashboard, and was met with SSL errors. Initially I was met with the following error when hitting an endpoint ...
jacob_g's user avatar
  • 776
2 votes
0 answers
1k views

I have a problem with redis-py connection into redis on kubernetes. Few times a day redis pod restarts/moves on new one pod, but my python processes catches ConnectionError error: I know, that it ...
zigi's user avatar
  • 51
0 votes
1 answer
408 views

I want to enqueue the RQ task, to complete a task, suppose it takes around 10 minutes, Now i want to pause any task if it continues for 5 minutes and start another task and after another 5 minutes and ...
NewbieProgrammer's user avatar
4 votes
1 answer
2k views

I am having issues getting RQ-python to run. Like in the example of the documentation (https://python-rq.org) I have a function in an external file def createAndSaveIndex(url_list, index_path): ...
sc0urge's user avatar
  • 51
0 votes
1 answer
116 views

I am trying to create a flask application with rq redis which stores tasks that returns the data scraped by playwright library. What I am trying to do is to create a global browser instance of ...
NewbieProgrammer's user avatar
0 votes
1 answer
1k views

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 ...
betsy_roth's user avatar
0 votes
1 answer
216 views

Since our last release a range of what seems can only DB race conditions have been happening.We use python 3.10, django-rq, Django 4 and Postgres. In one case: x = Model.objects.create() job.delay(...
Henty's user avatar
  • 603
0 votes
1 answer
97 views

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 ...
afinkado's user avatar
1 vote
0 answers
114 views

I am trying to implement a fast API app in Heroku. A user has the option to send a keyword with the API endpoint. This triggers a background job (web scraping with the keyword). If there are multiple ...
Marvin 's user avatar
1 vote
0 answers
148 views

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 ...
Scratcha's user avatar
  • 1,401
-1 votes
1 answer
218 views

I am trying to send confirmation emails when a new user registers. When I send a confirmation email, everything works fine, however, when I try to run that task in the background I get the following ...
Marti F.R's user avatar
1 vote
2 answers
610 views

I have a FastAPI application deployed on DigitalOcean, it has multiple API endpoints and in some of them, I have to run a scraping function as a background job using the RQ package in order not to ...
leftandright04's user avatar
1 vote
2 answers
3k views

Migrating from Heroku to Railway.app: Python Flask app with Redis and Postgres. Using Redis as an asynchronous job queue, with the RQ Redis queue python library. Procfile, which works in dev, looks ...
m-a-draco's user avatar
0 votes
1 answer
716 views

I want to start a background job that does a periodic sync when I start the flask application. This works well, but in the task function I want to access a logger that was defined outside. While this ...
Hamilton's user avatar
3 votes
1 answer
537 views

Whenever we are trying to see queue info using rq info -u <<redis_url>> command, we are getting lots of extra entries like this - a331d42408099f7e5ec9c5864 (None None): ? ...
Koushik Roy's user avatar
  • 7,439
0 votes
1 answer
584 views

When trying to run django-rq worker I keep getting this error 15:35:26 Traceback (most recent call last): File "/home/john/PycharmProjects/api.to/venv/lib/python3.8/site-packages/rq/job.py"...
nadermx's user avatar
  • 2,954
0 votes
0 answers
420 views

I'm using django rq for some long running task, which I would like to provide some feedback about its progress. I hence created a function which is enqueued as a new task and set some model's ...
daufinsyd's user avatar
1 vote
1 answer
2k views

So I would like to have the following architecture: Flask API (VM 1) -> Redis Server (VM 2) <- Worker (VM 3) I have seen some examples and the idea I get is that on the API you define the tasks ...
MrMteor's user avatar
  • 11
0 votes
1 answer
1k views

I am trying to use the rq Retry functionality by following the rq documentation but it does not work when using the interval argument python version: 3.8.0 rq version: 1.10.0 The somewhere.py def ...
Charalamm's user avatar
  • 2,039
0 votes
0 answers
562 views

I'm trying to create a decorator that will automatically queue certain functions. import functools from rq import Queue from worker import conn q = Queue(connection=conn) def fire_and_forget(func): ...
Human Cyborg Relations's user avatar
0 votes
2 answers
442 views

What i want: I am trying to retrieve the parameters i passed to my job in rq scheduler while scheduling like: args passed, Function name, and other things What i have already tried: list_of_jobs=...
AkshayB's user avatar
  • 55
3 votes
0 answers
1k views

I am using @job decorator to define a task as below: rqueue = Queue(connection=Redis.from_url(REDIS_URL)) @job(queue=rqueue) def add(x, y): time.sleep(2) return x+y this works fine when I ...
Neelesh's user avatar
  • 756
0 votes
0 answers
196 views

If we use microservice architecture, ideally a single function definition should be at a single place. So if I have a microservice containing the subscriber function. And I want to publish an event to ...
zion's user avatar
  • 441
0 votes
1 answer
550 views

I am trying to test post requests to a Flask server, with a queue generated with rq module. Rq's queue keeps prompting this weird error: Traceback (most recent call last): File "/home/dor/...
BlaBla's user avatar
  • 11
1 vote
0 answers
234 views

I can't find a straight answer, is it possible to retry a job given just the job's redis id? I want to make an endpoint in Django that can manually retry a specific job, because I don't always need ...
Big Guy's user avatar
  • 792
0 votes
0 answers
1k views

I have been trying to use rq to queue API requests from BigQuery since they take so much time I get an H12 (Timeout) Error. The code keeps breaking down when a pass a dataframe to the next enqueue. ...
Alex's user avatar
  • 1
0 votes
2 answers
1k views

I Have a Flask project. Process are work normal. Database is PostgreSql. Everything is working on this Database. But when I Can use Python Rq I dont reach tables with SqlAlchemy. My project is on ...
Rick grimes's user avatar
0 votes
0 answers
265 views

When executing SQL queries using SQLAlchemy directly on API calls in Flask app they are executed successfully but when I try to perform one inside my function that gets executed using Redis job queue ...
Blaž Rupnik's user avatar
1 vote
1 answer
535 views

First of all, questions about flask_context including context for RQ jobs seems to be common issue but I searched a lot and still couldn't solve my problem. My decorator functions (tried both of them ...
Antonio Margaretti's user avatar
0 votes
1 answer
2k views

Tasker class setups the initial job when instantiated. Basically what I want is put a job in the 'main_queue', decide if job is running or if there is already same job that is queued in the '...
NONONONONO's user avatar
0 votes
0 answers
314 views

I'm working on the project which building system on k8s and running two separated process on two different pods (provider and server), one pod (provider) take responsible for collecting data, other (...
Trần Rin's user avatar
3 votes
1 answer
616 views

I'm trying to get rq-dashboard to work on my Redis server created through Heroku. I added it to my Flask app using from flask import Flask import rq_dashboard app = Flask(__name__) app.config....
Minh Tri Pham's user avatar
1 vote
0 answers
366 views

I am using flask in an application that does some long-running computations. I've successfully offloaded the compute-intensive code to an rq worker with this code job = q.enqueue(run_simulation) This ...
JGV's user avatar
  • 213
2 votes
0 answers
3k views

I am trying to get Redis and rq working. This is my main code: from rq import Queue from redis import Redis from util import count_words_at_url from rq.registry import FailedJobRegistry, Job import ...
JGV's user avatar
  • 213
0 votes
1 answer
2k views

I am new at RQ and I am trying to implement it within my flask app. The main goal of one of my routes is to update values from a database. To setup my worker I am using the following: from rq import ...
DatGuy's user avatar
  • 427
0 votes
1 answer
129 views

This is info for simple print function. Jobs with any function is failing without no distinct reason. Status: failed Job: <Job fdee8b46-3a9a-4014-b82f-370616bf3325: ams.ams(<Request 'http://172....
Harsh Pacherkar's user avatar
0 votes
1 answer
917 views

My setup is: Running Redis on docker locally running RQ in virtualenv(rq) running Flask in virtualenv(rq) Goal is to launch RQ tasks by hitting the Flask app. Redis seems to running fine, as does ...
user1269942's user avatar
  • 3,852
3 votes
1 answer
2k views

I've created a flask app that is effectively a news search app. It currently serves up a number of routes, integrates with elasticsearch for document searching and indexing and integrates with a mySQL ...
peetysmith's user avatar