You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/04/02 16:38:44 UTC

[GitHub] [apisix] tzssangglass edited a comment on issue #6786: help request: is there any way to trigger a timer when a plugin is enabled and cancel timer when plugin is disabled?

tzssangglass edited a comment on issue #6786:
URL: https://github.com/apache/apisix/issues/6786#issuecomment-1086673583


   > But when I write my plugin, and before I enable it in dashboard as `global_plugin`, the init function is still triggered
   
   `init` function in plugins is called on `init_worker_by_lua` phase, see: https://github.com/apache/apisix/blob/6559ac731c7984e647132e8107480633f6f62221/apisix/plugin.lua#L152-L154
   
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org