0.0.5 • Published 11 years ago

reduler v0.0.5

Weekly downloads
5
License
-
Repository
github
Last release
11 years ago

reduler - a distributed redis-backed scheduler

API

reduler.connect(host, port)

reduler.add(task, args, options, callback)

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.

reduler.remove(id)

reduler.run()

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

reduler.worker(callback)

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

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago