title: Best practice for scheduling tasks
body: <p>I am developing a site where users will be able to run scheduled their own tasks. There will be a lot of tasks from each user.<br>
  Tasks can be of two types:<br>
  1. Tasks which will be run in the future at any time. (example: John want to post his message tomorrow in 5:25 pm).<br>
  2. Tasks which will be run in the future but in time which multiple 15 minutes. (example: John want to post his message tomorrow in 5:15 pm. He can't schedule this task on 5:25 because it isn't multiple 15 minutes. He can schedule it only on time like 5:15, 5:30, 5:45, 6:00 and so on).<br><br>
  What is the best practice to work with these tasks?<br><br>
  I have this idea:
  Use a mysql database to store all tasks with index on time. Run a scheduler which will pull a task which must run soon and after this task pull next and so on.<br><br>
  Best Regards, Alexandr</p>