membphis commented on issue #1510:
URL: 
https://github.com/apache/incubator-apisix/issues/1510#issuecomment-653549401


   here is a simple way to implement a fake `exit` phase,  you can make a try.
   
   ```lua
   local delay = 60 * 10
   local handler
   handler = function (premature)
       if premature then
           -- add your code here, that is a fake `exit` phase
           return
       end
       
       ngx.sleep(delay)
       local ok, err = ngx.timer.at(delay, handler)
       if not ok then
           ngx.log(ngx.ERR, "failed to create the timer: ", err)
           return
       end
    end
   
   local ok, err = ngx.timer.at(0, handler)
   if not ok then
       return
   end
   ```
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to