Relative Content

Tag Archive for python-3.xflaskwebsocketceleryeventlet

Celery task not working with WebSocket (Flask)

I’m working on a project that requires both Celery and WebSocket functionality. I’m using the Flask framework along with Flask-SocketIO for the WebSocket implementation. However, I’m having trouble running both Celery and WebSocket together. I’m using Eventlet for the WebSocket, but whenever I run the app with Gunicorn and Eventlet, Celery stops accepting connections after one or two successful attempts. If I remove Eventlet, Celery works perfectly, but the WebSocket fails to connect.