Hello!
On Mon, Nov 2, 2015 at 11:49 AM, MELWIN JOSE wrote:
> I want a particular function to be called every 15seconds (i.e I need to
> setup a timer) in a core nginx module that i have written.
>
> Here is the code that I have written by referring some examples online. The
> ngx_monitoring_init_process() is the 'init process' function in my
> 'ngx_monitoring_module'
>
> The module compiles OK, but the timer doesn't work, any idea why ?
>
Sounds like the init_worker_by_lua + ngx.timer.at() combination in the
ngx_lua/OpenResty world. Maybe you can just reuse that facility?
Failing that, you may want to check out how ngx_lua implements it (if
I didn't misinterpret your intention).
Regards,
-agentzh