Skip to content

A node.js distributed task processing service based on RabbitMQ.

License

Notifications You must be signed in to change notification settings

SunshineLibrary/warpgate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

warpgate

A node.js distributed task processing service based on RabbitMQ.

// Define TaskHandler
LogTaskHandler = function() {}

LogTaskHandler.prototype.handleTask = function(task) {
    console.log(task.action)
}


// RabbitMQ connection params; Use default if empty.
rabbitmqParams = {}

// Config and start TaskService
TaskService = require('warpgate').TaskService

taskService = new TaskService(rabbitmqParams, 'role', 'hostname')

taskService.setHandler('log', new LogTaskHandler())

taskService.start()

Test

mocha --compilers coffee:coffee-script

About

A node.js distributed task processing service based on RabbitMQ.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published