Update tasks.py
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user