From 9f011b27c376e79fb12bd60565bba21c853d36a5 Mon Sep 17 00:00:00 2001 From: Stephan Porada Date: Mon, 26 Aug 2019 14:21:06 +0200 Subject: [PATCH] Add redis message qeue --- app/__init__.py | 2 +- opaque.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/__init__.py b/app/__init__.py index 6d788f8d..2b11b4ab 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -25,7 +25,7 @@ def create_app(config_name): mail.init_app(app) scheduler.init_app(app) scheduler.start() - socketio.init_app(app) + socketio.init_app(app, message_qeue='redis://') from .auth import auth as auth_blueprint app.register_blueprint(auth_blueprint, url_prefix='/auth') diff --git a/opaque.py b/opaque.py index 2b61164b..7ed970fd 100644 --- a/opaque.py +++ b/opaque.py @@ -1,3 +1,6 @@ +import eventlet +eventlet.monkey_patch() + from dotenv import load_dotenv load_dotenv()