LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
[FIX] Fix Redis Sentinel HA crashes in backend and celery services (#1854)
Chandrasekharan M49643650d25f
diff --git a/backend/backend/settings/base.py b/backend/backend/settings/base.pyindex d1d935b91..8d0c1fd3a 100644--- a/backend/backend/settings/base.py+++ b/backend/backend/settings/base.py@@ -477,6 +477,7 @@ if REDIS_SENTINEL_MODE:"LOCATION": f"redis://{_user_prefix}{REDIS_SENTINEL_MASTER_NAME}/{_redis_db}","OPTIONS": {"CLIENT_CLASS": "django_redis.client.SentinelClient",+ "CONNECTION_POOL_CLASS": "redis.sentinel.SentinelConnectionPool","SENTINELS": [(REDIS_HOST, int(REDIS_PORT))],"SENTINEL_KWARGS": _sentinel_kwargs,"DB": int(_redis_db),diff --git a/backend/utils/log_events.py b/backend/utils/log_events.pyindex 898049dbb..f2ff72582 100644--- a/backend/utils/log_events.py+++ b/backend/utils/log_events.py@@ -16,7 +16,9 @@ logger = logging.getLogger(__name__)_kombu_kwargs: dict[str, Any] = {"url": settings.SOCKET_IO_MANAGER_URL}if getattr(settings, "SOCKET_IO_TRANSPORT_OPTIONS", None):- _kombu_kwargs["transport_options"] = settings.SOCKET_IO_TRANSPORT_OPTIONS+ _kombu_kwargs["connection_options"] = {+ "transport_options": settings.SOCKET_IO_TRANSPORT_OPTIONS+ }sio = socketio.Server(# Allowed values: {threading, eventlet, gevent, gevent_uwsgi}diff --git a/workers/log_consumer/tasks.py b/workers/log_consumer/tasks.pyindex 56af72592..3eaa28085 100644--- a/workers/log_consumer/tasks.py+++ b/workers/log_consumer/tasks.py@@ -59,7 +59,11 @@ sio = socketio.Server(client_manager=socketio.KombuManager(url=socket_io_manager_url,write_only=True,- **({"transport_options": _transport_options} if _transport_options else {}),+ **(+ {"connection_options": {"transport_options": _transport_options}}+ if _transport_options+ else {}+ ),),)