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) <noreply@anthropic.com>master
parent
5cb15756fc
commit
eae55fd714
|
|
@ -397,7 +397,7 @@ class Scheduler:
|
||||||
status_triggers = mapping.get("auto_execute_on_status", [])
|
status_triggers = mapping.get("auto_execute_on_status", [])
|
||||||
if task.status.lower() not in [s.lower() for s in status_triggers]:
|
if task.status.lower() not in [s.lower() for s in status_triggers]:
|
||||||
hint = mapping.get("trigger_hint", "manual trigger only")
|
hint = mapping.get("trigger_hint", "manual trigger only")
|
||||||
log.info(
|
log.debug(
|
||||||
"Skipping task '%s' (type=%s): auto_execute is false (%s)",
|
"Skipping task '%s' (type=%s): auto_execute is false (%s)",
|
||||||
task.name,
|
task.name,
|
||||||
task.task_type,
|
task.task_type,
|
||||||
|
|
@ -484,7 +484,7 @@ class Scheduler:
|
||||||
client.update_task_status(task_id, self.config.clickup.error_status)
|
client.update_task_status(task_id, self.config.clickup.error_status)
|
||||||
|
|
||||||
self._notify(f"ClickUp task skipped: **{task.name}**\nReason: {result[:200]}")
|
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
|
return
|
||||||
|
|
||||||
# Tool handled its own ClickUp sync — just log success
|
# Tool handled its own ClickUp sync — just log success
|
||||||
|
|
@ -664,7 +664,7 @@ class Scheduler:
|
||||||
category="autocora",
|
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/
|
# Move result file to processed/
|
||||||
processed_dir.mkdir(exist_ok=True)
|
processed_dir.mkdir(exist_ok=True)
|
||||||
|
|
|
||||||
|
|
@ -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 |
|
| **poll** | 60 seconds | Runs cron-scheduled tasks from the database |
|
||||||
| **heartbeat** | 30 minutes | Reads HEARTBEAT.md checklist, takes action if needed |
|
| **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) |
|
| **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 |
|
| **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 |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue