Situation:
I have a table with tasks (which need to run at different intervals) and two php scripts (initator.php & worker.php). The initiator script is run every minute by cron and the intervals are stored in a column together with the tasks.
The initiator script should check which tasks should be send to the worker script.
so the question is: How could I determine which tasks need to be run in the current minute?
I tried it with a 'next' column (mysql timestamp), the initiator script checks if the next column matches the current date without seconds but I think this isn't a good solution because of delays and execution times.