How to run cron automatically after node published? cron has to run after some time  of node publishing.I tried like this

 function custom_module_cron{
//($updated = node published time)
if(date("Y/m/d H:i:s") == date("Y/m/d H:i:s",$updated+60)){
//code here
}
}


but its not running automatically. Can anybody help ?
have you managed your cron configuration, if no then go to /admin/config/system/cron and set your cron settings to run on that interval of time.

Hope it solves your issue.