Common Causes of Delayed or Missed User Reminders: Replaceable Cron Delivery
Common Causes of Delayed or Missed User Reminders: Replaceable Cron Delivery Short answer: the common causes of delayed or missed user reminders are a paused cron job, an unavailable public callback, or a run longer than 900 seconds. Keep the cleanup trigger, durable message, and user-facing delivery behind replaceable boundaries. A queue plus a realtime channel gives the failure somewhere to…
The article discusses the common causes of delayed or missed user reminders, specifically focusing on replaceable cron delivery. It identifies three main failure boundaries: a paused cron job that does not backfill missed triggers, an unavailable public callback due to an internal hostname or private network address, and a 900-second timeout limit for a single cron execution.
To address these issues, the author suggests keeping the cleanup trigger, durable message, and user-facing delivery behind replaceable boundaries. The recommended solution involves using a queue plus a realtime channel, ensuring idempotency, and employing a stable idempotency key for retrying deliveries. The author also highlights the importance of splitting the cleanup sweep into queue messages to make the process retryable while emphasizing the need for a clear contract between the cleanup sweep, queue, and realtime delivery.
Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.