4 ms·
If you do it that way, how do you make sure the task gets completed successfully and exactly once?
by neolog 6y ago
If you do it that way, how do you make sure the task gets completed successfully and exactly once?
- jeffbee 6y agoI wouldn't. Exactly-once is a fool's quest, and the scheme in this article does not offer it. To achieve at-least-once, you need only track which tasks have been successfully retired, and persist that knowledge in the database by either deleting or mutating the task. During a cold start you scan the persistent store to find tasks that were still pending/live at the time your process began.