Questions tagged [rq]

RQ (Redis Queue) refers to Redis message queue and broker software. The tag can also refer to libraries implementing the Redis message queue.

RQ (Redis Queue) is a Redis message queue and broker software. The tag can also refer to libraries implementing the Redis message queue.

See also:

46 questions
0
votes
1 answer

Redis queue Retry does not work with the interval argument

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 my_func(): print('Start...') asdsa # Here…
Charalamm
  • 1,547
  • 1
  • 11
  • 27
0
votes
0 answers

Creating a decorator for python rq to queue tasks

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): @functools.wraps(func) def…
Human Cyborg Relations
  • 1,202
  • 5
  • 27
  • 52
0
votes
1 answer

Can we retrieve the parameters originally passed in scheduler.Schedule() (Like Args) in RQ scheduler?

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=scheduler.get_jobs() # print("jobs…
AkshayB
  • 55
  • 1
  • 7
0
votes
0 answers

What is a better way to create a redis - rq microservice container, to publish events from other independent containers?

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 that subscriber from any microservice. How would…
zion
  • 391
  • 5
  • 22
0
votes
1 answer

Python rq module: AttributeError: 'tuple' object has no attribute '__module__'

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…
BlaBla
  • 11
  • 3
0
votes
0 answers

TypeError: cannot pickle '_thread.lock' object with RQ (Redis Queue) [python 3.9 & 3.8 & 3.7]

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. here's my worker.py file: import os import…
Alex
  • 1
  • 1
0
votes
2 answers

This is not work Flask Rq Queue with SqlAlchemy database table

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 heroku. How can i solve this problem. Note:( queuing…
0
votes
0 answers

How to use PostgreSQL with SQLAlchemy in a Flask application with Redis queued job

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 I get the following error: RuntimeError: No…
0
votes
1 answer

Flask context for RQ jobs (RuntimeError: Working outside of application)

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 in different variations): def…
0
votes
1 answer

Scheduling/Queueing a job within another job with redis queue

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 'process_queue', return from the the current 'main_queue'…
NONONONONO
  • 612
  • 1
  • 6
  • 10
0
votes
0 answers

Flask redis queue (RQ) worker update parent process from Vault

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 (server) talking with provider and retrieving data…
0
votes
1 answer

Setting environment variables with Redis Queue

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 Worker, Queue, Connection import redis import…
DatGuy
  • 377
  • 1
  • 4
  • 10
0
votes
1 answer

RQ-Jobs Failing for No reason

This is info for simple print function. Jobs with any function is failing without no distinct reason. Status: failed Job: , '4')> Info:…
0
votes
1 answer

RQ task from Flask keeps adding to queue

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 the rq worker (launched by "rq worker") Simple…
user1269942
  • 3,772
  • 23
  • 33
0
votes
1 answer

Job is visible only from redis cli but not showing in rq dashboard and not executed

I want to build a pipeline using Redis and RQ. I created a worker, server and a job, the worker is running and listening to queue, the server is dispatching a job to a queue, the job is dispatched and I print the job ID, in console, I can see the…
palAlaa
  • 9,500
  • 33
  • 107
  • 166