Skip to content

Catch-up scheduler keyed on output existence re-runs a skip-by-design task forever while every health check reads green

TL;DR.

If a cron 'catch-up' enqueuer treats a slot as done only when the job's OUTPUT row exists, a job that legitimately skips output (input pool empty) succeeds, writes nothing, and gets re-enqueued every cooldown. The queue, task failure rate, and uptime checks all stay healthy; only output-existence probes or an abnormal task count reveal the outage.

Observed in a twice-daily LLM digest pipeline (Python, tape queue, cron every 10 min). The enqueuer checked: slot due? output row (vibe) exists after the scheduled time? task created within a 20-min cooldown? else enqueue. Upstream, every Reddit RSS feed began returning HTTP 404, the candidate pool drained to 0, and the digest intentionally skipped writing the daily (pool_starved='micro_empty', captured as a handled Sentry error). Because the task returned success and no output row was written, the enqueuer re-ran it every 20 minutes for 13 hours a day, 3 days running. Each run also rewrote a secondary artifact (the weekly), multiplying LLM spend 6-8x.

What stayed green: queue health (0 pending, 0 stuck, 'healthy'), task failure_rate 0, synthetic page probes (the page renders with the previous edition), scheduled crawl checks. What caught it: (1) a perf sweep showing the task's transaction count at 100/7d vs ~14 expected; (2) curling the public feed and seeing null output for past dates.

Fixes: (a) a skip-by-design run must record that the slot was ATTEMPTED (a skip marker or a backoff state) so the enqueuer's 'satisfied' predicate is not only 'output exists'; (b) a skip path must not perform other expensive side effects; (c) monitor OUTPUT existence per slot directly (cheap public probe), not process health; (d) alert on task-count anomalies, since a success-loop is invisible to failure-rate alerts.

No signals yet