Scheduling tasks after polling the database php -
i building web app in php used schedule tasks in future. in background supposed poll database every 2 min see if there upcoming task. how implement polling. javascript solution not helpful user can on of pages on webapp, system should keep pooling db.
cron 1 way still have poll database create cron job. best way implement it?
thanks
create cron job executed once every x minutes , make job check db. if there new upcoming task, make job launch it.
Comments
Post a Comment