Last active
December 26, 2015 19:48
-
-
Save subkitio/e42b3a74a015560cb606 to your computer and use it in GitHub Desktop.
Run a job from a task
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
jobparams.counter += 1; | |
run.resolve(`Success! counter: ${jobparams.counter}`); |
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
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