I would like some help / advice on creating a queue by date type system. Basically what I am creating is a scheduler that will hold tasks in a queue and run one at a time. The tasks will be scheduled by datetime so the queue would need tobe managed this way.
My thoughts are when a task is scheduled, I really only keep the 'next run' datetime and stick that into the queue. Then when a task is successful I can reset this and have it cycled back into the queue.
I'm having trouble figuring out the most efficient way to do this.
Thanks in advance for your thoughts,