src/common/specs.js
function isRunning(specs) {
  return specs.dataset.some(coll => {
    return coll.contents.some(e => {
      return ['ready', 'queued', 'running', 'interrupted'].includes(e.status);
    });
  });
}
function isRunning(specs) {
  return specs.dataset.some(coll => {
    return coll.contents.some(e => {
      return ['ready', 'queued', 'running', 'interrupted'].includes(e.status);
    });
  });
}
function isRunning ( specs ) { return specs . dataset . some ( coll => { return coll . contents . some ( e => { return [ 'ready' , 'queued' , 'running' , 'interrupted' ] . includes ( e . status ) ; } ) ; } ) ; }
Retern if the package has running tasks
@param {object} specs - package JSON
@return {bool} if there are any ongoing tasks
Retern if the package has running tasks