Skip to content

Commit

Permalink
added validation on start job as well resolves #616
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnoble committed Nov 16, 2017
1 parent a5e15b0 commit 346944b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cluster/services/jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ module.exports = function module(context) {
}
return _ensureAssets(jobConfig);
})
.then(assetIdJob => executionService.createExecutionContext(assetIdJob));
.then(parsedAssetJob => _validateJob(parsedAssetJob))
.then(validJob => executionService.createExecutionContext(validJob));
})
.catch((err) => {
const errMsg = `could not startJob, error: ${parseError(err)}`;
Expand Down

0 comments on commit 346944b

Please sign in to comment.