Update tasks.py

This commit is contained in:
alorig
2025-11-09 23:58:05 +05:00
parent bee6a68718
commit 46920aa313

View File

@@ -738,10 +738,19 @@ def auto_generate_ideas_task(self, cluster_ids: List[int], account_id: int = Non
cluster_ids: List of cluster IDs cluster_ids: List of cluster IDs
account_id: Account ID for account isolation account_id: Account ID for account isolation
""" """
import sys
print("=" * 80, flush=True, file=sys.stdout)
print("[CELERY TASK] auto_generate_ideas_task STARTED", flush=True, file=sys.stdout)
print(f"[CELERY TASK] Task ID: {self.request.id}", flush=True, file=sys.stdout)
print(f"[CELERY TASK] cluster_ids: {cluster_ids}", flush=True, file=sys.stdout)
print(f"[CELERY TASK] account_id: {account_id}", flush=True, file=sys.stdout)
print("=" * 80, flush=True, file=sys.stdout)
account_id = account_id account_id = account_id
logger.info("=" * 80) logger.info("=" * 80)
logger.info("auto_generate_ideas_task STARTED") logger.info("auto_generate_ideas_task STARTED")
logger.info(f" - Task ID: {self.request.id}")
logger.info(f" - cluster_ids: {cluster_ids}") logger.info(f" - cluster_ids: {cluster_ids}")
logger.info(f" - account_id: {account_id}") logger.info(f" - account_id: {account_id}")
logger.info("=" * 80) logger.info("=" * 80)