node-rqueue is a simple Redis based work queue for communicating between multiple platforms.
var rq =var assert = okvar q = q// Start the workerqconsole// Listen for jobs. Emits rq.Job objectsq// Quickly create a job and push it to 'queued'q// Callback can be used as second argument.// Create a job and mess with individual options.var job = q// Timeouts// Set from default timeout in queue optionsjobtimeout = 10000 // 10 seconds// Priority. Higher is more important. Default is 1jobpriority = 9001 // Over 9000// Add some messagesjobjob// Save the job and push it to the 'queued' statusjob// Or save it for forwarding laterjob