Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

[MISC] Removed purge of periodic logs celery queue (#1358)

Chandrasekharan M01263e177e9c
diff --git a/backend/backend/celery_service.py b/backend/backend/celery_service.py
index cc837aa9f..9b0e19b6f 100644
--- a/backend/backend/celery_service.py
+++ b/backend/backend/celery_service.py
@@ -6,7 +6,6 @@ import os
from pprint import pformat
from celery import Celery
-from utils.constants import ExecutionLogConstants
from backend.celery_task import TaskRegistry
from backend.settings.base import LOGGING
@@ -33,16 +32,3 @@ app.config_from_object("backend.celery_config.CeleryConfig")
app.autodiscover_tasks()
logger.debug(f"Celery Configuration:\n {pformat(app.conf.table(with_defaults=True))}")
-
-# Define the queues to purge when the Celery broker is restarted.
-queues_to_purge = [ExecutionLogConstants.CELERY_QUEUE_NAME]
-with app.connection() as connection:
- channel = connection.channel()
- for queue_name in queues_to_purge:
- try:
- # Declare the queue (will be created if it doesn't exist)
- channel.queue_declare(queue=queue_name, durable=True, auto_delete=False)
- channel.queue_purge(queue_name)
- logger.info(f"Successfully purged queue: {queue_name}")
- except Exception as e:
- logger.warning(f"Could not purge queue {queue_name}: {str(e)}")