From 3e9b086c3367cf5a5783a77925b5b2df81076e02 Mon Sep 17 00:00:00 2001 From: Matthew Frost Date: Wed, 28 Feb 2024 20:10:53 +0100 Subject: [PATCH] queues --- app/__init__.py | 3 ++- app/templates/index.html | 2 +- app/threads.py | 39 +++++++++++++++++++++++++++++++++++++++ app/views.py | 7 +++++++ 4 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 app/threads.py diff --git a/app/__init__.py b/app/__init__.py index e963b9c..4c83165 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -6,6 +6,7 @@ from app.utils import get_baytech_status_outlet_telnet from flask_socketio import SocketIO, emit from gevent import monkey from app.jobs import scheduler, generate_batch_jobs +from app.threads import generate_threads socketio = SocketIO(async_mode="gevent", logger=True, engineio_logger=True, cors_allowed_origins="*") @@ -43,7 +44,7 @@ def create_app(): app.register_blueprint(routes) powerbar_status() scheduler.init_app(app) - generate_batch_jobs() + generate_threads() socketio.init_app(app) return app diff --git a/app/templates/index.html b/app/templates/index.html index 85af103..ee7b988 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -104,7 +104,7 @@ input:checked + .slider:before {
-

Techinc Logo powerbar.ti (3.2.6)

+

Techinc Logo powerbar.ti (4.0.1)