localdelay=5localhandlerhandler=function(premature)-- do some routine job in Lua just like a cron jobifprematurethenreturnendlocalok,err=ngx.timer.at(delay,handler)ifnotokthenngx.log(ngx.ERR,"failed to create the timer: ",err)returnendendlocalok,err=ngx.timer.at(delay,handler)ifnotokthenngx.log(ngx.ERR,"failed to create the timer: ",err)returnend