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 <noreply@anthropic.com>
cora-start
PeninsulaInd 2026-02-20 21:02:06 -06:00
parent ee7b4cc256
commit f9142e6669
1 changed files with 3 additions and 0 deletions

View File

@ -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)