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:

  1. bool - status - if it's a success or not
  2. string - when there's an error this is the error message
generated by LDoc 1.4.6 Last updated 2022-03-10 17:13:14