You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
here is a simple way to implement a fake exit phase, you can make a try.
localdelay=60*10localhandlerhandler=function (premature)
ifprematurethen-- add your code here, that is a fake `exit` phasereturnendngx.sleep(delay)
localok, err=ngx.timer.at(delay, handler)
ifnotokthenngx.log(ngx.ERR, "failed to create the timer: ", err)
returnendendlocalok, err=ngx.timer.at(0, handler)
ifnotokthenreturnend
Activity
ShiningRush commentedon Apr 27, 2020
Here is all phase of openresty, I think you can use

Log Phaseas you mentioned "exiting phase".If all of those phase can not help you, you can post a issue to openresty : )
moonming commentedon Apr 28, 2020
Actually, OpenResty doesn't have the exit phase yet.
moonming commentedon Apr 28, 2020
@ShiningRush @OnlyPiglet these is a PR for exit work phase: openresty/lua-nginx-module#1682
OnlyPiglet commentedon Apr 29, 2020
thanks I see
membphis commentedon Jun 20, 2020
What do you need to do in the exit phase?
OnlyPiglet commentedon Jul 3, 2020
membphis commentedon Jul 3, 2020
here is a simple way to implement a fake
exitphase, you can make a try.OnlyPiglet commentedon Aug 18, 2020
@membphis thanks a lot