Periodic Worker Dedup

Build a periodic notifier that never misses an item when a run is delayed, and whose only way to repeat one is a kill inside a single narrow window. Covers keeping the "already handled" record in the database rather than in the worker, scanning a time window deliberately wider than the scheduling interval so a skipped run catches up, and processing oldest-first so an interrupted run loses the newest item rather than a random slice. Android only. Use when users report duplicate notifications after a device restart, when items are missed while the device is idle, or when a first run floods the user with the whole back catalogue.

maxrave-dev 7f70d96 5.8 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/periodic-worker-dedup commit 7f70d96c93

Frequently asked questions

npx skillmds@latest add maxrave-dev/periodic-worker-dedup