Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
0 answers
39 views

I am running Django app with gunicorn gevent workers. I'm using Statsig for Feature Flagging. It appears to be struggling, I assume due to gevents monkey patching. I was hoping I could get around this ...
user2616166's user avatar
1 vote
0 answers
46 views

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 ...
Lakshmi's user avatar
  • 11
0 votes
1 answer
40 views

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....
Hunter Lewis's user avatar
0 votes
0 answers
38 views

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 ...
Bilal Waseem's user avatar
0 votes
0 answers
113 views

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 --...
Michael Nikitin's user avatar
0 votes
0 answers
200 views

Anyone using Django + Gunicorn + Gevent + Opentelemetry in production? Would love to know how you got it to work. Seems like I can't seem to use BatchSpanProcessor or BatchLogRecordProcessor. I'm ...
Sai Chander's user avatar
0 votes
1 answer
57 views

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 ...
Amizan J.'s user avatar
0 votes
0 answers
37 views

When making asynchronous code, what limitations does gevent with third-party synchronous libraries have that asyncio with third-party asynchronous libraries with async/await syntax doesn't? What are ...
Nine Treasures's user avatar
0 votes
0 answers
91 views

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 ...
Shikhar Thapliyal's user avatar
0 votes
0 answers
79 views

I am new in developing flask app. The purpose of this flask app is to insert matching time entry  into home_table from admin_table and display the table and recently inserted row on index.html in ...
code_flipper's user avatar
1 vote
0 answers
218 views

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 ...
Malay Patra's user avatar
0 votes
0 answers
100 views

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 ...
noloman's user avatar
  • 12.1k
0 votes
1 answer
58 views

My code looks like this: def download_article_picture(self): """ Downloads the article picture if available based on an input url """ for i in ...
fatbee7's user avatar
1 vote
1 answer
98 views

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 ...
Jiren's user avatar
  • 681
1 vote
0 answers
251 views

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://...
Keane Dixon Wong's user avatar
0 votes
1 answer
130 views

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 : ...
Mougnou's user avatar
  • 336
1 vote
1 answer
46 views

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 ...
Vasyl S's user avatar
  • 11
0 votes
0 answers
102 views

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 ...
user24477818's user avatar
1 vote
1 answer
175 views

gevent version: 20.10.2 Python version: cPython 3.9 Operating System: macOS 14.3.1(M3) Description: I use gevent patch for my program, but in the program, I need to execute asyncio related code in ...
MattonRoi's user avatar
  • 159
2 votes
4 answers
1k views

If a confused user of my application accidentally makes an HTTPS call against my "plain" flask server (expecting an HTTP request) running gevent, I get a log message that I dont know how to ...
Cyberwiz's user avatar
  • 11.7k
0 votes
1 answer
347 views

I need help with this recursion error maximum recursion depth exceeded from boto3. This happens when I initialize an s3 client in my inference script to allow me read s3 objects. Your insights will be ...
Mustapha Unubi Momoh's user avatar
0 votes
1 answer
858 views

I am trying to run a flask app that includes web-sockets and it uses flask_socketio. My Python code is as follows from flask import jsonify, request, Flask from flask_cors import CORS from ...
Hisham's user avatar
  • 21
1 vote
0 answers
139 views

I have a Celery system running, with 4 queues, using RabbitMQ as the broker. Currently this system is running using the gevent workerpool, and it is working fine when starting the worker from the ...
Alfred Rodenboog's user avatar
1 vote
1 answer
180 views

I wonder what is difference from parallel option and no-wait option in pyinfra. I understand parallel option controls the number of host at once and no-wait option controls if the host operations work ...
Park JeongHoon's user avatar
1 vote
0 answers
765 views

I have a flask application that I implemented socketio on. In the local debugger it works. Through IIS the connections are not stable. Here is a snip of the console: console_image The logs show my ...
ibaughnez's user avatar
1 vote
1 answer
1k views

I have lots of async code which is used for websocket connectons. Idea is simple: fetch data from websocket, calculate some math and do lots of io. data = await websocket.recv() # Do some math ...
Vladislav's user avatar
0 votes
0 answers
487 views

I have a Python Flask app that publishes messages to the MQTT topic and subscribes from the MQTT topic. It is deployed on Kubernetes and runs on gunicorn with the gevent worker class. The app creates ...
Shivakumar Sajjan's user avatar
0 votes
1 answer
626 views

Here is a minimal blueprint to reproduce the issue: @my_blueprint.route('/my_route', methods=['POST']) async def my_route() -> Response: await asyncio.sleep(5) return format_json_response(...
Anton H's user avatar
1 vote
1 answer
1k views

I am trying to create an .exe of my python application that I run from the server.py script. I am using Auto-py-to-exe in one directory mode which gives me the following command: pyinstaller --...
yeray's user avatar
  • 85
1 vote
0 answers
93 views

I'm working on a web scraper that makes use of grequests, and then sshtunnel to store the data in a database. However importing grequests and sshtunnel causes Error reading SSH protocol banner cannot ...
David's user avatar
  • 75
0 votes
0 answers
332 views

I am trying to deploy my flask app on a headless pi. My flask app uses Socketio to create websockets to push sensor data to my routes. I also also use flask WTForms in my flask app. The flask app ...
Laurlo17's user avatar
0 votes
1 answer
1k views

I have a celery task like so: from celery import Celery from asgiref.sync import async_to_sync from celery_app.celery_commands import some_async_command import os redis_connection_string = os.environ....
Nibaron Chakraborty's user avatar
2 votes
0 answers
681 views

When running celery worker on a container using python3.11 with redis as a broker - I am getting the following exception. Downgrading to python 3.10 solves the problem, but is there another solution? ...
DanielM's user avatar
  • 4,131
1 vote
2 answers
856 views

I've tried this: import trio from gevent import monkey, spawn monkey.patch_all() async def async_double(x): return 2 * x def run(): return trio.run(async_double, 3) g = spawn(run) g.join() ...
Cyberwiz's user avatar
  • 11.7k
0 votes
1 answer
200 views

I have a discrete event simulation that (optionally) works with greenlets from the greenlet module. The event loop is entirely controlled by me. However, I think the gevent module is better maintained ...
ruudvanderham's user avatar
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
2 votes
0 answers
901 views

I have two applications in Digital Ocean with the following commands at startup: app1 sh run.sh # It starts celery worker, beat, nginx, gunicorn app2 sh run-worker.sh # It starts celery worker, ...
Florent's user avatar
  • 1,948
1 vote
1 answer
388 views

i have the following working code: from gevent import monkey; monkey.patch_all() from gevent.pool import Pool import time def work(x): time.sleep(1) # Or use requests.get() or something else IO-...
Rapid1898's user avatar
  • 1,565
1 vote
0 answers
233 views

I am running a Flask app using gunicorn with only 1 gevent worker and using MySQL database via SQLAlchemy with mysql-connector and executing a long-time query. When issuing two API calls ...
Scottie's user avatar
  • 1,051
0 votes
2 answers
953 views

I am attempting to install BigchainDB Version 2.2.2 on my Ubuntu 22.04 machine. I entered the code sudo pip3 install bigchaindb==2.2.2 The installation went part of the way before exiting and ...
Graham's user avatar
  • 1
0 votes
0 answers
370 views

I've developed a Flask app where I use ThreadPoolExecutor(max_workers=4) in my code. I use this pool of threads when I send API requests to 3rd parties, in order to work in an asynchronous fashion. I ...
IdoS's user avatar
  • 590
0 votes
2 answers
1k views

I am using gevent workers with gunicorn for my flask application. I am facing issues where my greenlets are getting blocked for long periods. gevent provides monitoring via monitor threads. Is it ...
ravi katiyar's user avatar
1 vote
0 answers
867 views

I am using gevent workers with gunicorn for my flask application that exposes some http endpoint. Within this http endpoint execution flow I make a request to another http endpoint to fetch some data. ...
ravi katiyar's user avatar
2 votes
1 answer
506 views

I have an application which includes a Flask API server and a worker to process messages from PubSub. These run as separate containers on separate pods in Kubernetes. I've migrated to using Workload ...
M4C4R's user avatar
  • 273
0 votes
0 answers
621 views

I tried running the command "python -m auto_py_to_exe" on Visual Studio Code/Command Prompt on a Windows 10 Virtual Machine using Python 3.9.0, Python 3.10.0/3.10.11 as well as Python 3.11. ...
User2000's user avatar
  • 149
1 vote
1 answer
1k views

The only thing my Celery task is doing is making an API request and sending the response back to Redis queue. What I'd like to achieve is to utilize as many resources as possible by executing tasks in ...
Taras  Mykhalchuk's user avatar
1 vote
0 answers
242 views

Cannot install gevent inside venv: on Mac M1 (OS Ventura 13.3.1 (22E261)), python 3.9 Running '(cd "/private/var/folders/6j/khw733_d6w52dc93lqy5d0lc0000gq/T/pip-install-bhh121m3/...
Anna's user avatar
  • 21
3 votes
0 answers
470 views

We use Celery with gevent worker in our application. Workers are run as separated docker containers. How we run Celery: celery -A app.worker worker --pool=gevent --loglevel=info --concurrency=50 -E -n ...
Artiom  Kozyrev's user avatar
2 votes
0 answers
223 views

I am running locust in Docker (version 23.0.3). I keep getting the following error: [2023-04-08 02:12:15,725] 044913c8d54a/INFO/locust.main: Starting web interface at http://0.0.0.0:8089 (accepting ...
Vivek Raut's user avatar
0 votes
0 answers
2k views

I apologize for the wall of code, however, I no longer understand how to solve this problem I'm a newbie, but I've already followed all the basic recommendations, to no avail, maybe someone can point ...
Kirill Kit's user avatar

1
2 3 4 5
24