src/clusterpost-provider/cronprovider.js
function(){

		var view = "_design/searchJob/_view/jobstatus?key=" + JSON.stringify('UPLOADING');
	    return server.methods.clusterprovider.getView(view)
	    .then(function(docs){
	    	return Promise.map(_.pluck(docs, "value"), server.methods.cronprovider.addJobToUpdateQueue);
	    })
	    .catch(console.error);
		
	}
function(){

		var view = "_design/searchJob/_view/jobstatus?key=" + JSON.stringify('UPLOADING');
	    return server.methods.clusterprovider.getView(view)
	    .then(function(docs){
	    	return Promise.map(_.pluck(docs, "value"), server.methods.cronprovider.addJobToUpdateQueue);
	    })
	    .catch(console.error);
		
	}
function ( ) { var view = "_design/searchJob/_view/jobstatus?key=" + JSON . stringify ( 'UPLOADING' ) ; return server . methods . clusterprovider . getView ( view ) . then ( function ( docs ) { return Promise . map ( _ . pluck ( docs , "value" ) , server . methods . cronprovider . addJobToUpdateQueue ) ; } ) . catch ( console . error ) ; }
Checks for stalled uploading tasks.
Checks for stalled uploading tasks .