reduler

A redis-backed distributed task scheduler.

reduler - a distributed redis-backed scheduler

API

options:

  • date: when to run the task, default is Date.now().
  • repeats: default is 1, use 0 for unlimited.
  • period: the time in milliseconds of repeat cycle, default 60000.

The main loop handling tasks life cycle, it should be invoked exactly one time.

The worker can be invoked from a different process other than reduler.run().