My objective is to run a function every seconds. And check some time based functionality. For example, In my application I have five groups of users. Each of the users have a particular task. And allotted a particular period of time. The task firstly assigned to the lower level(ie, 5th level) Users. If that users couldnot able to clear the task with the allotted time, it will automatically reassign to the next higher level of users(here 4 th level). My table structure is Users-> name,allotted time Tasks->task title,task description. If anybody know the solution, please help me.
Thanks in advance.