Why My Cron Job Ran Twice: A Race Condition in Two Lines of Code
A cron job ran twice last Tuesday. Not a crash, not an error — the same job, twice, four minutes apart, doing the same work on the same data. The second run sent duplicate emails to a handful of users
