News for hackers. Stuff that matters.
Re:Lovely Week with Elixir by moreaccountspls on Wednesday May 20, 2020 @05:18PM (#23251913)
Slightly offtopic, but consider a pattern of persisting the state machine of a given task instead of the task queue itself. For example, for a daily email job, you might have three states: UNSENT, BEGIN(begin_time), SENT. Then you can just have a supervisor job that scans your table or whatever and schedules jobs, retries, etc. as needed. Now you don't have to worry about the queue state at all!

There are no comments on this comment yet.