Skip to content

Instantly share code, notes, and snippets.

@evantahler
Last active December 8, 2016 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evantahler/5aea80c04f14e8a88c91 to your computer and use it in GitHub Desktop.
Save evantahler/5aea80c04f14e8a88c91 to your computer and use it in GitHub Desktop.
ActionHero Example Task: Say Hi
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