Getting scheduled jobs right: idempotent monthly resets with Celery Beat
10 min
Resetting every user's quota on the 1st sounds like a one-liner. Duplicate executions and month-boundary math say otherwise. Writing this post is also how I found the bug that refilled December's users every single day.