From f9142e666915d5ca40e272fe087a440e4e51445e Mon Sep 17 00:00:00 2001 From: PeninsulaInd Date: Fri, 20 Feb 2026 21:02:06 -0600 Subject: [PATCH] Skip Office temp/lock files (~$) in folder watcher Prevents the watcher from picking up ~$*.xlsx lock files created by Excel, which would match the same ClickUp task and corrupt its status. Co-Authored-By: Claude Opus 4.6 --- cheddahbot/scheduler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cheddahbot/scheduler.py b/cheddahbot/scheduler.py index cd2745a..de256dc 100644 --- a/cheddahbot/scheduler.py +++ b/cheddahbot/scheduler.py @@ -486,6 +486,9 @@ class Scheduler: for xlsx_path in xlsx_files: filename = xlsx_path.name + # Skip Office temp/lock files (e.g. ~$insert_molding.xlsx) + if filename.startswith("~$"): + continue kv_key = f"linkbuilding:watched:{filename}" # Skip completed/failed; retry "processing" (killed run) and "blocked" (missing field)