Skip to content

Instantly share code, notes, and snippets.

@subkitio
Last active December 26, 2015 19:48
Show Gist options
  • Save subkitio/e42b3a74a015560cb606 to your computer and use it in GitHub Desktop.
Save subkitio/e42b3a74a015560cb606 to your computer and use it in GitHub Desktop.
Run a job from a task
jobparams.counter += 1;
run.resolve(`Success! counter: ${jobparams.counter}`);
var paramsForJob = {
counter: 1
};
run('job-to-run', paramsForJob)
.then(result => this.res.send(result))
.catch(error => this.res.status(400).send(error.message));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment