From 46920aa313a8f8584bb2253d4dd305b09b3db4a9 Mon Sep 17 00:00:00 2001 From: alorig <220087330+alorig@users.noreply.github.com> Date: Sun, 9 Nov 2025 23:58:05 +0500 Subject: [PATCH] Update tasks.py --- backend/igny8_core/modules/planner/tasks.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backend/igny8_core/modules/planner/tasks.py b/backend/igny8_core/modules/planner/tasks.py index 9b366940..9130e6c2 100644 --- a/backend/igny8_core/modules/planner/tasks.py +++ b/backend/igny8_core/modules/planner/tasks.py @@ -738,10 +738,19 @@ def auto_generate_ideas_task(self, cluster_ids: List[int], account_id: int = Non cluster_ids: List of cluster IDs 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 logger.info("=" * 80) 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" - account_id: {account_id}") logger.info("=" * 80)