Last active
December 8, 2016 16:35
-
-
Save evantahler/5aea80c04f14e8a88c91 to your computer and use it in GitHub Desktop.
ActionHero Example Task: Say Hi
This file contains 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
exports.task = { | |
name: 'sayHi', | |
description: 'I will log to the console every so often', | |
frequency: 5 * 1000, | |
queue: 'default', | |
plugins: [], | |
pluginOptions: {}, | |
run: function(api, params, next){ | |
api.log("Hello!", "alert"); | |
next(); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment