From eae55fd7148fdf0fa31f89399701e6331ac8aee4 Mon Sep 17 00:00:00 2001 From: PeninsulaInd Date: Wed, 18 Mar 2026 13:20:38 -0500 Subject: [PATCH] Reduce scheduler log noise and update loop timing docs - Move repetitive "Skipping task", "ClickUp task skipped", and "AutoCora result" messages from INFO to DEBUG level - Update task-pipeline-flows.md: folder watchers now 40m, add cora_distribute loop Co-Authored-By: Claude Opus 4.6 (1M context) --- cheddahbot/scheduler.py | 6 +++--- docs/task-pipeline-flows.md | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cheddahbot/scheduler.py b/cheddahbot/scheduler.py index 4eb1493..09be27d 100644 --- a/cheddahbot/scheduler.py +++ b/cheddahbot/scheduler.py @@ -397,7 +397,7 @@ class Scheduler: status_triggers = mapping.get("auto_execute_on_status", []) if task.status.lower() not in [s.lower() for s in status_triggers]: hint = mapping.get("trigger_hint", "manual trigger only") - log.info( + log.debug( "Skipping task '%s' (type=%s): auto_execute is false (%s)", task.name, task.task_type, @@ -484,7 +484,7 @@ class Scheduler: client.update_task_status(task_id, self.config.clickup.error_status) self._notify(f"ClickUp task skipped: **{task.name}**\nReason: {result[:200]}") - log.info("ClickUp task skipped: %s — %s", task.name, result[:200]) + log.debug("ClickUp task skipped: %s — %s", task.name, result[:200]) return # Tool handled its own ClickUp sync — just log success @@ -664,7 +664,7 @@ class Scheduler: category="autocora", ) - log.info("AutoCora result for '%s': %s", keyword, status) + log.debug("AutoCora result for '%s': %s", keyword, status) # Move result file to processed/ processed_dir.mkdir(exist_ok=True) diff --git a/docs/task-pipeline-flows.md b/docs/task-pipeline-flows.md index b862215..3d794c8 100644 --- a/docs/task-pipeline-flows.md +++ b/docs/task-pipeline-flows.md @@ -50,9 +50,10 @@ CheddahBot runs 6 daemon threads. All start at boot and run until shutdown. | **poll** | 60 seconds | Runs cron-scheduled tasks from the database | | **heartbeat** | 30 minutes | Reads HEARTBEAT.md checklist, takes action if needed | | **clickup** | 20 minutes | Polls ClickUp for tasks to auto-execute (only Press Releases currently) | -| **folder_watch** | 60 minutes | Scans `Z:/cora-inbox` for .xlsx files → triggers Link Building | +| **folder_watch** | 40 minutes | Scans `//PennQnap1/SHARE1/cora-inbox` for .xlsx files → triggers Link Building | | **autocora** | 5 minutes | Submits Cora jobs for today's tasks + polls for results | -| **content_watch** | 60 minutes | Scans `Z:/content-cora-inbox` for .xlsx files → triggers Content/OPT Phase 1 | +| **content_watch** | 40 minutes | Scans `//PennQnap1/SHARE1/content-cora-inbox` for .xlsx files → triggers Content/OPT Phase 1 | +| **cora_distribute** | 40 minutes | Scans `//PennQnap1/SHARE1/Cora-For-Human` for .xlsx files → distributes to pipeline inboxes | ---