The isPaused() method checks if the current job is paused. A job that has completed is considered not paused.
results = isPaused()
|
Boolean |
Job paused state: true = Job is paused. false = Job is not paused. |
var context = this.getContext();
var search = context.get('search');
if (search.job.isPaused()) {
console.log('Current job is paused!');
} else {
console.log('Current job is NOT paused!');
}