1,148 questions
Score of 0
0 answers
140 views
Why does Celery with Redis backend create hundreds of connections despite max_connections limits
I am using Django + Celery with Redis as both the broker and the result backend. Here is my Celery configuration:
# Celery settings
CELERY_BROKER_URL = 'redis://redis:6379/1'
CELERY_RESULT_BACKEND = '...
Score of 1
0 answers
64 views
WebSocket transcripts not received until connection is closed during Locust load test
I’m performing a WebSocket load test using Locust with websocket-client and a Flask webhook that receives transcripts.
The WebSocket connection works, audio chunks are sent correctly, and my backend ...
Score of 0
1 answer
76 views
How do I turn on logs when using Gevent with Gunicorn?
I used to use eventlet to run a flask app on Render.com. It would show detailed logs on render every time an HTTP request was made like GET /socket.io/?EIO=4&transport=polling&t=PcGtd0M HTTP/1....
Score of 0
0 answers
56 views
Is there a way to reduce polling woth django dramtiq
I have a webapp using django hosted on render cloud platform which allows users to make api call to deepseek.
These api calls sometimes take 5 minutes to respond, and doing so with async may cause ...
Score of 1
1 answer
187 views
gunicorn gevent CERTIFICATE_VERIFY_FAILED error
I have a Django website running in a Docker container (Debian), which I deploy with the following command:
gunicorn core.wsgi:application --bind 0.0.0.0:8000 --workers 33 --worker-class gevent --...
Score of 0
1 answer
85 views
Gevent monitoring: printing stacktrace on blocked greenlets
I'm trying to set up the monitoring thread in gevent to detect a blocked Celery worker and to print the stacktrace of the blocked worker. We set up the monitoring thread like this:
def ...
Score of 0
0 answers
114 views
Failed to deliver acknowledgement to Rabbit MQ (flask socket io + gevent +celery)
We are facing an issue with while running the flask application using flask-socketio and a background process using celery, where celery is unable to pick tasks from queue after successfully executing ...
Score of 1
0 answers
253 views
gevent AssertionError when using pymongo in flask-socketio app
gevent version: 24.2.1 (pip install gevent)
Python version: Python 3.12.3 (python --version)
Operating System:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.1 LTS
...
Score of 0
0 answers
129 views
APScheduler in a Python flask app to execute recurring tasks isn't working with Gunicorn
I'm a newbie with Python and flask in general and I'm trying to create (I think) a kind of basic project: I have a flask web app that makes requests every 12 hours to a certain API endpoint and stores ...
Score of 0
1 answer
68 views
Requests webdriver loop
My code looks like this:
def download_article_picture(self):
""" Downloads the article picture if available based on an input url
"""
for i in ...
Score of 1
1 answer
138 views
Locust Gevent friendly socket
I have the following client listed below to send request to my server using a custom protobuf message. How do I make this gevent friendly so I can make connection in parallel. Right now it seems the ...
Score of 1
0 answers
304 views
ERR_SSL_CLIENT_AUTH_CERT_NEEDED when sending custom client certificate from Electron
I have been trying to send a certificate (in the form of a .pem file) from Electron to my backend (using gevent) and encountering the following error
(node:18946) electron: Failed to load URL: https://...
Score of 0
1 answer
168 views
Celery executes tasks sequentially, one after another
I have a Django application that has large I/O-bound tasks.
I use Celery to run these tasks in threads and manage the progress in the UI with a progress bar.
Here's my configuration :
Django version : ...
Score of 1
1 answer
49 views
list of users who are online - Flask Gunicorn Gevent
I have a Flask application (for user authentication I use flask-login, flask-session). I use gunicorn with gevent and flask_socketio to run it.
I have a task to display a list of users who are online ...
Score of 0
0 answers
130 views
How do I make google pubsub work with Locust?
I'm trying to implement a GCloudSubUser for the Python library Locust. I'm implementing this custom User because I need the user to:
send a message to a topic of Google Pub/sub
The issues seems to be ...