Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

query-swarm

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

query-swarm - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

.jshintrc

6

lib/QuerySwarm.js

@@ -65,3 +65,3 @@ 'use strict';

self.workers.splice.apply(self.workers, params);
return concurrency = value;
return (concurrency = value);
}

@@ -128,3 +128,3 @@ };

redis.set(self.id + ':lock', null, 'PX', self.options.lockTimeout + 1000, 'NX', function(err, result) {
if(result === 0)
if(result === null)
return;

@@ -134,3 +134,3 @@

redis.set(self.id + ':throttle', null, 'PX', self.throttle, 'NX', function(err, result) {
if(result === 0)
if(result === null)
return;

@@ -137,0 +137,0 @@

@@ -64,7 +64,7 @@ 'use strict';

// we're mid-job; gracefully exit when it's done
return self.next = function(){
return (self.next = function(){
delete self.next;
self.active = false;
callback();
};
});
};

@@ -96,3 +96,3 @@

if(delay)
return self.timeout = setTimeout(self.next.bind(self), delay, method);
return (self.timeout = setTimeout(self.next.bind(self), delay, method));

@@ -99,0 +99,0 @@ return setImmediate(self.next.bind(self), method, false);

{
"name": "query-swarm",
"version": "0.0.4",
"version": "0.0.5",
"description": "Safely distribute query-driven tasks over a swarm of parallel functions on a single process or across multiple processes/machines.",

@@ -5,0 +5,0 @@ "keywords": "schedule, queue, task, job, worker, redis, distributed, async",

@@ -19,3 +19,3 @@ 'use strict';

concurrency: 2
}
};

@@ -115,3 +115,2 @@ describe('Start/Stop', function(){

describe('Deadletter', function(){

@@ -191,3 +190,2 @@ var q = 0;

});
});

@@ -207,3 +205,3 @@

function(task, callback) {
assert.ok(false, 'the worker should never be run.')
assert.ok(false, 'the worker should never be run.');
},

@@ -210,0 +208,0 @@ opts

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc