Fixing Delayed Reminders Beyond the 7-Day Queue Limit With Database-Driven Cron Scans
Delayed queue messages cannot schedule reminders more than seven days out, which causes problems for marketplaces with long renewal lead times. The recommended approach keeps the reminder's due date and sent status in the database as the source of truth. A periodic cron job scans for reminders due within a short time window and enqueues delivery jobs for them. Each claim is handled idempotently so that retries and missed runs do not produce duplicate notifications. The example implementation uses a scheduled HTTPS endpoint and a queue worker with stable reminder identifiers.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in