Pass statuses to ClickUp API for task matching and reduce watcher interval

Server-side filter tasks by _CORA_ELIGIBLE_STATUSES in _match_xlsx_to_clickup,
_match_xlsx_to_content_task, and _distribute_cora_file instead of fetching all
tasks and filtering client-side. Reduce watcher interval from 40m to 10m.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
master
PeninsulaInd 2026-03-18 19:33:32 -05:00
parent fdafa42122
commit c12c655220
2 changed files with 4 additions and 4 deletions

View File

@ -946,7 +946,7 @@ class Scheduler:
return None
try:
tasks = client.get_tasks_from_overall_lists(space_id)
tasks = client.get_tasks_from_overall_lists(space_id, statuses=list(_CORA_ELIGIBLE_STATUSES))
except Exception as e:
log.warning("ClickUp query failed in _match_xlsx_to_clickup: %s", e)
return None
@ -1122,7 +1122,7 @@ class Scheduler:
return None
try:
tasks = client.get_tasks_from_overall_lists(space_id)
tasks = client.get_tasks_from_overall_lists(space_id, statuses=list(_CORA_ELIGIBLE_STATUSES))
except Exception as e:
log.warning("ClickUp query failed in _match_xlsx_to_content_task: %s", e)
return None
@ -1207,7 +1207,7 @@ class Scheduler:
return
try:
tasks = client.get_tasks_from_overall_lists(space_id)
tasks = client.get_tasks_from_overall_lists(space_id, statuses=list(_CORA_ELIGIBLE_STATUSES))
except Exception as e:
log.warning("ClickUp query failed in _distribute_cora_file: %s", e)
return

View File

@ -99,7 +99,7 @@ clickup:
link_building:
blm_dir: "E:/dev/Big-Link-Man"
watch_folder: "//PennQnap1/SHARE1/cora-inbox"
watch_interval_minutes: 40
watch_interval_minutes: 10
default_branded_plus_ratio: 0.7
# AutoCora job submission