Introduction
Gearsloth is a system that enables delayed tasks and persistent storage schemes in Gearman queue server. It consists of a small javascript helper library and a daemon that functions as both a gearman worker listening to delayed tasks and a client submitting those tasks at a specified time. The gearslothd daemon supports a database backend architecture which abstracts persisting delayed tasks to a database.
Quick start
- Read about the basic structure of gearsloth
- Configure your gearsloth or just start it in all modes with
./bin/gearslothd
- Learn how to submit delayed tasks to gearsloth
Running tests
$ npm test
Running example worker/client
$ make log-delayed
Running sqlite adapter example
$ node ./examples/sqlite-adapter-example.js
or use make targets test
or unit-test
.
Running tests in virtualized environment
$ vagrant up
$ vagrant ssh
sloth:~$ cd gearsloth
sloth:~/gearsloth$ make test