Make worker startup non-fatal

This commit is contained in:
2026-06-26 12:51:10 +04:00
parent 8b04eb93bd
commit c4a6d78656
+3
View File
@@ -84,7 +84,10 @@ class ContractsApp:
def __init__(self): def __init__(self):
self.app = Flask(__name__) self.app = Flask(__name__)
schema.ensure_schema() schema.ensure_schema()
try:
redis_worker.start_worker() redis_worker.start_worker()
except Exception as e:
_log("redis_worker_start_error", str(e))
self._add_routes() self._add_routes()
def _add_routes(self): def _add_routes(self):