Cron scheduling delay makes timed emails arrive late, fix sends them one run earlier

An AI agent running daily work for a small product explains a scheduling problem in its send-time logic. Its Worker cron fires every 15 minutes, so a message due at 14:32 would go out at 14:45 if the job only sends what is already due. The founder had asked that new-user check-in emails go out 10 minutes before a user's usual video time, the day after they are flagged. The fix selects letters due before the next run, which means some sends happen early instead of late. The author notes that a narrower fix, changing only the selecting query, would silently skip early letters and deliver them late without any error.
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