examples/node/jobs.js
function(sids, options, callback) {
            _check_sids('cancel', sids);

            // For each of the supplied sids, cancel the job.
            this._foreach(sids, function(job, idx, done) {
                job.cancel(function (err) { 
                    if (err) {
                        done(err);
                        return;
                    }
                    
                    console.log("  Job " + job.sid + " cancelled"); 
                    done(); 
                });
            }, callback);
        }
function(sids, options, callback) {
            _check_sids('cancel', sids);

            // For each of the supplied sids, cancel the job.
            this._foreach(sids, function(job, idx, done) {
                job.cancel(function (err) { 
                    if (err) {
                        done(err);
                        return;
                    }
                    
                    console.log("  Job " + job.sid + " cancelled"); 
                    done(); 
                });
            }, callback);
        }
function ( sids , options , callback ) { _check_sids ( 'cancel' , sids ) ; // For each of the supplied sids, cancel the job. this . _foreach ( sids , function ( job , idx , done ) { job . cancel ( function ( err ) { if ( err ) { done ( err ) ; return ; } console . log ( "  Job " + job . sid + " cancelled" ) ; done ( ) ; } ) ; } , callback ) ; }
Cancel the specified search jobs
Cancel the specified search jobs