content-review: enable the dispatcher cron (go-live)#19905
Conversation
… switch) Turn the dispatcher on: uncomment the weekday cron and invert the gate so the scheduled run fires unless CONTENT_REVIEW_ENABLED is the literal 'false'. Unset (default) or any other value runs; set 'false' to stop the cron instantly with no PR. Merging this PR takes the pipeline live. Also refresh the stale header: workers now open a draft PR that the re-lint gate promotes to ready (firing the normal triage -> review chain) and arms for auto-merge — no more force-dispatch, and merges require an approval. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Your site preview for commit 0bf1783 is ready! 🎉 http://www-testing-pulumi-docs-origin-pr-19905-0bf1783b.s3-website.us-west-2.amazonaws.com |
- Skip scheduled runs on company holidays via an optional BambooHR ICS feed. A holiday-check job reads the CONTENT_REVIEW... BAMBOOHR_HOLIDAY_ICS_URL repo variable, parses the 'Company Holidays' category with is-holiday.py (TZ America/Chicago, multi-day + category aware, self-tested), and skips the dispatcher when today is a holiday. FAILS OPEN at every step (unset var, 404/fetch failure, parse error -> runs), and never echoes the per-user feed URL. Manual workflow_dispatch ignores the holiday gate. - Count precedence: workflow_dispatch input > CONTENT_REVIEW_COUNT repo variable > default 3, so the scheduled cadence is tunable without a code edit. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Drop the separate CONTENT_REVIEW_ENABLED variable. CONTENT_REVIEW_COUNT is now both the kill switch and the cadence knob: unset = on at 3/run, '0' = off (the job is skipped entirely, no runner/spend), 'N' = on at N/run. The job gate is a plain string compare against '0'; the selector also no-ops on any count<=0 (scored[:max(count,0)]), so a stray '00'/'-1' still does no work. One knob instead of two — simpler to operate. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pre-merge Review — Last updated 2026-06-26T21:26:59ZTip Summary: This is an infra PR that flips the existing content-review dispatcher from manual-only to scheduled (go-live). It un-comments the weekday Review confidence:
Investigation log
🔍 Verification trail2 claims extracted · 0 verified · 0 unverifiable · 0 contradicted
🚨 Outstanding in this PRNo outstanding findings in this PR.
|
Merging this PR takes the content-review pipeline live, operated entirely by repo variables.
Go-live
0 14 * * 1-5, 14:00 UTC).Single on/off + cadence knob (
CONTENT_REVIEW_COUNT)One variable is both the switch and the cadence (verified: the selector cleanly no-ops at count 0 — 0 articles, no halt, no error; and the job gate skips the whole job at
0):0→ off (job skipped entirely — no runner, no spend)N→ on, N articles/runManual
workflow_dispatchalways runs regardless (itscountinput wins).Optional holiday-skip (
BAMBOOHR_HOLIDAY_ICS_URL)A
holiday-checkjob reads this repo variable (a per-user BambooHR feed token — temporary convenience) and skips scheduled runs on company holidays viais-holiday.py(Company Holidayscategory, TZ America/Chicago, multi-day + recurrence aware, self-tested). Fails open everywhere (unset / 404 / parse error → runs); URL never echoed; manual dispatch bypasses it.Operate (Settings → Variables)
CONTENT_REVIEW_COUNT0= off;N= on at N/runBAMBOOHR_HOLIDAY_ICS_URLDrafted by Claude; reviewed by Cam.