Module resty.dynacode.poller
Provide the basic setup for calling a function in a given interval.
It uses the ngx.time.every
.
Functions
spawn.setup (opt) | Setup function. |
Functions
- spawn.setup (opt)
-
Setup function.
Parameters:
- opt options to configure the poller
- interval number - the interval in between recurring function calls.
- callback function - the function that will be called "in background"
- workers_max_jitter number - the number of seconds to add jitter among all the nginx workers
Returns:
- bool - status - if it's a success or not
- string - when there's an error this is the error message
- opt options to configure the poller