Created
December 17, 2014 05:16
-
-
Save mrlannigan/892db2166184987d282f to your computer and use it in GitHub Desktop.
example governor-agent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var GovernorAgent = require('governor-agent'), | |
agent = new GovernorAgent({some: 'connection settings to governor'}); | |
agent.consume('jobname', {some: 'options'}, function (job) { | |
// do work | |
return APromise(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment