Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sampleScriptRunning(activity){
- var ID = activity.map(function(activity){return activity.ID})
- for(var i = 0; i < ID.length; i++){
- if(ID[i] === 'undefined'){
- console.log('No more scripts to run')
- return;
- }
- Api.getActivityStatus(ID[i]).then(function(response){
- return $http.post('/proxy/api/nodejsjob/' + response.sample.sample[0].ScriptId + '/run')
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement