Lines Matching refs:active
683 var active = [],
702 _.pull(active, this);
720 active.length >= threshold && _.isEmpty(_.difference(active, restarted))) {
734 this.jobs = { 'active': active, 'all': all, 'queue': queue }; property in Tunnel.jobs
757 active = jobs.active,
761 stop = _.after(active.length, _.partial(_.invokeMap, all, 'reset', reset));
763 if (_.isEmpty(active)) {
769 _.invokeMap(active, 'stop', function() {
770 _.pull(active, this);
815 active = jobs.active,
819 while (queue.length && (active.length < throttled)) {
821 active.push(job);
845 active = jobs.active;
847 var stop = _.after(active.length, _.bind(function() {
857 if (_.isEmpty(active)) {
860 _.invokeMap(active, 'stop', function() {
861 _.pull(active, this);